pandas
sinat_24395003
先学使用轮子,再学造轮子,再自己造轮子
展开
-
将时间规整成最近滞后的5分钟时间
print(pi_start_time) from datetime import datetime,timedelta def normalize_minutes(dt,round_mins=5): mins = dt.minute - (dt.minute % round_mins) nearest5interval = datetime(dt.year, dt.month, ...原创 2019-12-26 10:36:07 · 488 阅读 · 0 评论 -
df.apply
Signature: df5.apply(func, axis=0, broadcast=False, raw=False, reduce=None, args=(), **kwds) Docstring: Applies function along input axis of DataFrame. Objects passed to functions are Series objects原创 2017-06-26 14:15:20 · 1847 阅读 · 0 评论