熊猫日期切片

时间:2021-01-10 13:08:25

标签: python pandas

我正在使用这样的 Pandas 切片日期并且它有效:

report_df['2011-10-01 15:26:00' :'2020-10-01 15:26:00']

report_df 有 'hours' 列,其值如下:

2020-07-13 11:00:00+00:00

但是为什么这不起作用?:

report_df['2011-10-01 15:26:00+00:00' :'2020-10-01 15:26:00+00:00']

这样做:

report_df['2011-10-01 15:26:00' :'2020-10-01 15:26:00']

0 个答案:

没有答案