Kei*_*thx 1 python pandas
有这样的df:
我想要一个只包含最大日期行的数据框.怎么做?
谢谢!
Vai*_*ali 9
查找最近的日期:
recent_date = df['date'].max()
然后获取最近日期的数据框:
df[df['date'] == recent_date]
归档时间:
9 年 前
查看次数:
7453 次
最近记录:
7 年,7 月 前