plotly is one of the powerful visualization library which use to plot attractive graph. with plotly, we can plot many graphs like lines, box plot, histogram and many more.
Cufflinks is another library that connected plotly with pandas to create graphs of the DataFrame directly.
Install the plotly and cufflinks
pip install plotlypip install cufflinks
import plotly and cufflinks and connected with offline mode
import plotly as pyfrom plotly.offline import iplotimport cufflinks as cf
py.offline.init_notebook_mode(connected = True)cf.go_offline()
all example with this data,
import pandas as pddf = pd.DataFrame(np.random.randn(100,3),columns =['A','B','C'])
df.head()

Line plot
df.iplot(x ='A',y = 'B',kind = 'line',mode = 'lines+markers',colors = 'red' )

Scatter plot
df.iplot(kind = 'scatter',mode = 'markers')

Box plot
df.iplot(kind = 'box',theme = 'pearl',boxpoints = 'suspectedoutliers' )

Surface pot
df.iplot(kind = 'surface', colorscale = 'bugn')

Bar graph
df.iplot(kind = 'bar', barmode='stack', bargap=0.7)

Histogram
df.iplot(kind='hist', bins = 25, barmode = 'overlay',colorscale = 'reds')

Heatmap
df.iplot(kind='heatmap',colorscale = 'purd')

we can get different color scale and theme using these method
cf.getThemes()cf.colors.scales()