/ Python And R Data science skills: 97 plotly 03
Showing posts with label 97 plotly 03. Show all posts
Showing posts with label 97 plotly 03. Show all posts

Sunday, 18 February 2018

97 plotly 03

97 plotly 03
In [1]:
import pandas as pd
import numpy as np
%matplotlib inline

from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import cufflinks as cf
init_notebook_mode(connected=True)
cf.go_offline()
IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--NotebookApp.iopub_data_rate_limit`.
In [2]:
df1 = pd.DataFrame(np.random.randn(100,4),columns='A B C D'.split())
df2 = pd.DataFrame({'Category':['A','B','C'],'Values':[32,43,50]})
In [13]:
df1.iplot(kind='hist',bins=25)
In [10]:
df1[['A','B']].iplot(kind='spread')
In [11]:
df1.iplot(kind='spread')
In [12]:
df1.iplot(kind='bubble',x='A',y='B',size='C')