I am dealing with time series data my data captured is in Milliseconds format i.e
02/04/2018 07:45:00.1239
. I want the mean of the same time stamp which contains only seconds.
DF
ID Time_Stamp A B C
1 02/02/2018 07:45:00.123 123 567 434
2 02/02/2018 07:45:00.456 123 678 678
3 02/02/2018 07:45:00.687 121 121 121
4 02/02/2018 07:45:01.123 112 2323 2323
As shown in the sample i have milliseconds data . I want mean of all the data of time 02/02/2018 07:45:00
My result data Frame should be:
ID Time_Stamp A B C
1 02/02/2018 07:45:01 mean(R1A:R4A) mean(R1B:R4B) mean(R1C:R4C)
2 02/02/2018 07:45:02 mean(R4A:R8A) mean(R4B:R8B) mean(R4C:R8C)
I.e mean of the rows of that particular column.
Output should be:
ID Time_Stamp A B C
1 02/02/2018 07:45:01 122.33 455.33 411
i.e mean of column A ,Rows 1:3(123,123,121), column B ,Rows 1:3(567,678,121),column C ,Rows 1:3(434,678,121)
Please help!!