I have Pandas Dataframe like below:
redacted_name_1 \
0 [1628377576.0, 1628377939.98, 1628377942.04, 1...
1 [295.257080078125, 295.1255187988281, 295.2570...
redacted_name_2 \
0 [1628377494.927, 1628377855.377, 1628377957.39...
1 [9.3e-09, 9.3e-09, 9.2e-09, 9.3e-09, 9.2e-09, ...
redacted_name_3 \
0 [1628377543.443, 1628377903.8830001, 162837826...
1 [1.7e-08, 1.7e-08, 1.7e-08, 1.7e-08, 1.7e-08, ...
redacted_name_4 \
0 [1628377235.24, 1628377840.33, 1628378440.54, ...
1 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
Series 0 for every frame is a timestamp. Series 1 for every frame is a value.
I would like to merge them for easier handling (for me) by timestamp. To have something like this:
Timestamp, redacted_name_1 , redacted_name_2, redacted_name_3, redacted_name_4,
1628377576, 295.257080078125, NaN, NaN, NaN,
1628377494, NaN, 9.3e-09, NaN, NaN,
Timestamp should be rounded to a second.
If reading happens to be on the same time, it should be put in the same row as other one.
No timestamp duplication.