pandas 分享

pandas 读取 excel 时候 可能遇到开头 00100 的数据, 在读取后变为 100, 可以在读取的时候加入参数 dtype = object 来解决此类问题

pandas 处理时间
df[‘time’] = pd.to_datetime , 可以将任意日期格式处理成 年 - 月 - 日 格式的数据