柱状图
df.plot.scatter(x = 'against_bug',y = 'against_dark',c = 'against_electric') # 最多展示三个变量之间的关系
df['against_bug'].value_counts()[:4].plot.bar() # 柱状图,value_counts()[:4]写入的是某一列中的数据数值,在截至数值上必须有数据,否则会报错
grouped = df.groupby('against_bug')
gs = grouped.size() # 同一数值的总数量
gs[gs >=5].sort_values().plot.bar() # 升序的柱状图
直方图
df[['against_bug','against_dark']].plot.hist(bins=30)
箱型图
df = pd.DataFrame(np.random.rand(10,5),columns = ['A','B','C','D','E'])
df.plot.box() 相当于 df.plot(kind = 'box')