I got this pandas df:
(我得到了这个熊猫df:)
index TIME
12:07 2019-06-03 12:07:28
10:04 2019-06-04 10:04:25
11:14 2019-06-09 11:14:25
...
I use this command to do an histogram to plot how much occurence for each 15min periods
(我使用此命令进行直方图绘制每15分钟的发生次数)
df['TIME'].groupby([df["TIME"].dt.hour, df["TIME"].dt.minute]).count().plot(kind="bar")
my plot look like this:
(我的情节看起来像这样:)
How can I get x tick like 10:15 in lieu of (10, 15) and how manage to add x tick missing like 9:15, 9:30... to get a complet time line??
(我怎样才能像10:15一样获得x刻度来代替(10,15),以及如何设法像9:15、9:30那样添加x刻度缺失……以获得完整的时间线?)
ask by Jonathan Roy translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…