我正在使用这样的 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']