Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 按数据删除列_Python - Fatal编程技术网

Python 按数据删除列

Python 按数据删除列,python,Python,这篇文章被删除了。多谢各位 你好,世界 您想要转换('mean'): 输出: devicetimestamp id value value2 mean value3 0 2019-09-22 00:00:00 device1 10 3000 495 6.060606 1 2019-09-22 04:00:00 device1 40 2000 495 4.040404 2 2019-09-22 05:00:00

这篇文章被删除了。多谢各位

你好,世界

您想要
转换('mean')

输出:

       devicetimestamp       id  value  value2  mean    value3
0  2019-09-22 00:00:00  device1     10    3000   495  6.060606
1  2019-09-22 04:00:00  device1     40    2000   495  4.040404
2  2019-09-22 05:00:00  device1     45    1000   495  2.020202
3  2019-09-22 06:00:00  device1    450    1500   495  3.030303
4  2019-09-22 07:00:00  device1    500    2000   495  4.040404
5  2019-09-22 08:00:00  device1    550    3000   495  6.060606
6  2019-09-22 15:00:00  device1    600    4000   495  8.080808
7  2019-09-22 16:00:00  device1    650    3000   495  6.060606
8  2019-09-22 17:00:00  device1    700    2000   495  4.040404
9  2019-09-22 21:00:00  device1    900    1000   495  2.020202
10 2019-09-22 22:00:00  device1   1000    1500   495  3.030303
11 2019-09-23 05:00:00  device1   1100    2000  1150  1.739130
12 2019-09-23 04:00:00  device1   1200    3000  1150  2.608696
13 2019-09-24 05:00:00  device1   1100    2000  1150  1.739130
14 2019-09-24 04:00:00  device1   1200    3000  1150  2.608696
       devicetimestamp       id  value  value2  mean    value3
0  2019-09-22 00:00:00  device1     10    3000   495  6.060606
1  2019-09-22 04:00:00  device1     40    2000   495  4.040404
2  2019-09-22 05:00:00  device1     45    1000   495  2.020202
3  2019-09-22 06:00:00  device1    450    1500   495  3.030303
4  2019-09-22 07:00:00  device1    500    2000   495  4.040404
5  2019-09-22 08:00:00  device1    550    3000   495  6.060606
6  2019-09-22 15:00:00  device1    600    4000   495  8.080808
7  2019-09-22 16:00:00  device1    650    3000   495  6.060606
8  2019-09-22 17:00:00  device1    700    2000   495  4.040404
9  2019-09-22 21:00:00  device1    900    1000   495  2.020202
10 2019-09-22 22:00:00  device1   1000    1500   495  3.030303
11 2019-09-23 05:00:00  device1   1100    2000  1150  1.739130
12 2019-09-23 04:00:00  device1   1200    3000  1150  2.608696
13 2019-09-24 05:00:00  device1   1100    2000  1150  1.739130
14 2019-09-24 04:00:00  device1   1200    3000  1150  2.608696