Skip to content

Instantly share code, notes, and snippets.

@ravishchawla
Created June 6, 2019 16:43
Show Gist options
  • Save ravishchawla/ca73d89e20bec0ca0f338c25bf1436ce to your computer and use it in GitHub Desktop.
Save ravishchawla/ca73d89e20bec0ca0f338c25bf1436ce to your computer and use it in GitHub Desktop.
Starbucks post: Loading the data and creating visualizations
# Data Loading
portfolio = pd.read_json('data/portfolio.json', orient='records', lines=True)
profile = pd.read_json('data/profile.json', orient='records', lines=True)
transcript = pd.read_json('data/transcript.json', orient='records', lines=True)
# Cross Plot Visualizations
sns.pairplot(portfolio, hue='offer_type')
sns.pairplot(profile.dropna(), hue='gender')
@kakatang
Copy link

Can you tell me about data set for this project, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment