我可以使用日期范围过滤数据框:
df[(df['Due Date'] >= '2017-01-01') & (df['Due Date'] <= '2017-02-01')]
但我希望能够过滤一年
python pandas
pandas ×1
python ×1