【发布时间】:2020-02-29 13:00:15
【问题描述】:
我已经为下面的数据绘制了条形图
Total Monthly Actual Hours Total Monthly Work Hours
Activity Month
Apr-19 35381.25 42592
May-19 31722.50 44528
Jun-19 27708.50 38720
Jul-19 34283.50 44528
Aug-19 21359.90 42592
.
到目前为止我的代码
display(dfWorkActual)
dfWorkActual.plot(kind='bar')
plt.ylabel('Work Hours')
plt.xlabel('Month')
plt.title("Total Monthly Work Hours & Total Actual Work Hours vs Month")
现在我想添加每月总小时数中总实际小时数的百分比。
例如:
请指教
【问题讨论】:
-
能把你做的代码加进去吗?
-
当然。我会编辑帖子
标签: python pandas matplotlib percentage