Python 创建一天中的时间直方图
具有以下特征:Python 创建一天中的时间直方图,python,pandas,Python,Pandas,具有以下特征: time_of_day 0 19:52:48 1 11:05:30 2 14:08:15 4 19:20:02 5 19:30:26 13 01:32:35 14 10:37:55 21 08:35:08 22 14:10:12 23 20:14:10 是否可以使用熊猫绘制24小时的直方图?我将使用熊猫绘制一致数量的垃圾箱。这大概是你想要的吗 直方图数据 情节 又快又脏 sr.to_frame().plot.bar(legend=False
time_of_day
0 19:52:48
1 11:05:30
2 14:08:15
4 19:20:02
5 19:30:26
13 01:32:35
14 10:37:55
21 08:35:08
22 14:10:12
23 20:14:10
是否可以使用熊猫绘制24小时的直方图?我将使用熊猫绘制一致数量的垃圾箱。这大概是你想要的吗
直方图数据
情节
又快又脏
sr.to_frame().plot.bar(legend=False)
plt.show()
这有帮助吗:?@DaniMesejo谢谢你的回复,我去看看
sr.to_frame().plot.bar(legend=False)
plt.show()