2.1.8.2.Plotly and Cufflinks
import pandas as pd
import numpy as np
from plotly import __version__
from plotly import __version__
print(__version__)
import cufflinks as cf
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
init_notebook_mode(connected=True)
cf.go_offline()
df.iplot(kind = 'scatter', x = 'A', y = 'B')
df.iplot(kind = 'scatter', x = 'A', y = 'B', mode = 'markers', size = 20)
df2.iplot(kind='bar', x='Category', y='Values')
df.count().iplot(kind='bar')
df3 = pd.DataFrame({'x':[1,2,3,4,5], 'y':[10,20,30,40,50], 'z':[500,400,300,200,100]})
df3.iplot(kind='surface')
df3.iplot(kind='surface', colorscale = 'rdylbu')
df[['A', 'B']].iplot(kind='spread')
df.iplot(kind='bubble', x='A', y='B',size='C')