所以我有一个设备可以为我提供客流量(进出)。它根据绘制的线数生成一个 csv。csv 格式如下:
timestamp, in, out
上述情况适用于我只有 1 行的情况。但是,我每行有几个输入/输出,格式如下:
timestamp, in, out, in, out, in, out, in, out
输入示例:
12/01/2020,16:02:00,0,0,0,2,0,0,0,0
12/01/2020,16:03:00,0,0,0,0,0,0,0,0
12/01/2020,16:04:00,0,0,0,0,0,0,0,0
12/01/2020,16:05:00,0,0,0,0,0,0,0,0
12/01/2020,17:06:00,0,0,0,0,0,0,0,0
12/01/2020,17:07:06,1,0,0,0,0,0,0,0
12/01/2020,17:08:00,0,0,0,0,0,0,0,0
12/01/2020,17:09:01,0,0,0,0,0,0,0,1
12/01/2020,18:10:00,0,0,0,0,0,0,0,0
12/01/2020,18:11:00,1,0,0,0,0,0,0,0
in我希望计算每个小时的总和out。结果应采用以下格式:
timestamp, ins, outs
Smart猫小萌
哆啦的时光机
相关分类