水平条形图
bar环卫barh,就可以将条形图变为水平条形图
df.plot(x='Month',
y='Rain',
kind='barh')
#同样还可以这样画
#df.plot.bar...加标题
给可视化起个标题
df.plot(kind='bar',
y=['Tmax', 'Tmin'], #2个变量可视化
subplots=True, #多子图并存...layout=(1, 2), #子图排列1行2列
figsize=(20, 5),#图布的尺寸
title='The Weather of London...') #标题
plt.show()
?...来源:大邓和他的Python