37.pandas plotting
import pandas as pd
df1 = pd.read_csv('../Inputs/df1', index_col=0)
df1
df1['A'].hist()
df1['A'].hist(bins=30)
df1['A'].hist(bins=50)
df1['A'].hist(bins=100)
df1['A'].plot.hist()
df1['A'].plot(kind='hist', bins= 30)
df2 = pd.read_csv('../Inputs/df2')
df2
df2.plot.area(alpha=0.4)
df2.plot.bar()
df2.plot.bar(stacked=True)
df2.plot.line(x='a', y='b')
df2.plot.line(y='a')
df1.plot.line(y='A', lw=0.3)
df1.plot.line(y='A', lw=0.5)
df2.plot.scatter(x='a', y='b')
df1.plot.scatter(x='A', y='B')
df1.plot.line(x='A', y='B')
df2.plot.pie(y='a')
df2.plot.box()
df1.plot.hexbin(x='A', y='B')
df1.plot.hexbin(x='A', y='B', gridsize=25)
df1.plot.hexbin(x='A', y='B', gridsize=25, cmap='coolwarm')
# kernel density plot
df2['a'].plot.kde()
df2.plot.kde()