【发布时间】:2016-04-28 05:23:19
【问题描述】:
大师,我正在阅读一张大表,其中包含“yy-mm”格式的“issue_day”列。例如:
status issue_day
active 11-Dec
inactive 10-Dec
active 9-Dec
active 8-Jun
是否有任何 pythonic/pandas 方式来选择早于 2011 年的数据? (例如,在这种情况下,我们只需要 12 月 10 日和 12 月 9 日的数据)。 pandas to_csv 命令中只有“dayfirst”,但我没有看到“yearfirst”。有哪位大师能开导吗?谢谢你
【问题讨论】:
标签: python-2.7 date pandas