pandas连接和按时间排序

2022年1月17日10:58:07 发表评论 497 views
total_pd = pd.concat([total_pd,new_pd])
# 按时间排序:
total_pd['time'] = pd.to_datetime(total_pd['0'], format='%Y%m%d-%H:%M:%S')
total_pd.sort_values(by='time', ascending=True, inplace=True)# print(total_pd[0:10])
  • A+
所属分类:java

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: