要有这种思路
df.pivot_table().plot.barh(stacked=True)
df.groupby('education').apply(lanmbda x:x.avg).T.plot.hist(alpha = 0.5,satcked=True,bins=30,orientation='horizontal')
要有这种思路
df.pivot_table().plot.barh(stacked=True)
df.groupby('education').apply(lanmbda x:x.avg).T.plot.hist(alpha = 0.5,satcked=True,bins=30,orientation='horizontal')
本文标题:matplotlib画图
本文链接:https://www.haomeiwen.com/subject/zepqnhtx.html
网友评论