‘bar' or 'barh' for bar plots#条状图
’hist‘ or histogram#直方图
’box‘ for boxplot#箱线图
‘kde’ or 'density' for density plots#密度图
‘area’ for area plots#区域图
‘pie’ for pie plots #饼图
‘scatter’#散点图
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('arr.csv',index_col='date')
#条状图
df.plot()
df.plot(subplots=True)
# 散点图
df.plot.scatter(x='s1',y='s2')
#直方图
df.plot.hist()
#条状图
df.plot.bar()
df.plot.bar(stacked=True)
#箱线图
df.plot.box()
# 区域图
df.plot.area()
# 饼图
df.plot.pie(y='s1',figsize=(6,6))
df.T.plot.pie(y='05-21',figsize=(6,6))
#密度图
df.plot.kde()
plt.show()