Describe the purchase value of a user

Question

Given the following dataset, can you create a chart that describes the purchase value of a given user?

To help get you started, below is code (Python) to import the referenced dataset:

# Import libraries
%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
# Import data
df = pd.read_csv('https://raw.githubusercontent.com/erood/interviewqs.com_code_snippets/master/Datasets/sales_data_customer_value.csv')

Note this is an example of a more open-ended question, so you're free to define and segment purchase value however you see fit, provided you call out your assumptions in the solution.

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now