pandas常用csv操作 增加一列数据并赋值 两列时间相减 按时间合并且求和 其他操作 增加一列数据并赋值 有时候可能会遇到需要增加一列数据,例如增加一列全为1的数据,方便按时间合并行过后统计次数。 df['xxx number'] = 1 两列时间相减 使用pandas求两列时间的差,也就是统计csv数据集种某个任务持续的时间 df['end time'] = pd.to_datetime(df['end time']) df[