Skip to content

Instantly share code, notes, and snippets.

@joseph-allen
Created November 27, 2018 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseph-allen/e68e0417f711b4a50061200f2adeb146 to your computer and use it in GitHub Desktop.
Save joseph-allen/e68e0417f711b4a50061200f2adeb146 to your computer and use it in GitHub Desktop.
import plotly as py
py.tools.set_credentials_file(username='YOURE_USERNAME', api_key='YOUR API KEY')
import cufflinks as cf
import pandas as pd
df = pd.read_csv('data.csv')
py.plotly.iplot([{
'x': df.var0,
'y': df[col],
'name': col
} for col in [
'var1','var2]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment