Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

Converting data in dataframe to minutes and meters

$
0
0
data.csv: (journeyTime is ms and length is mm)roadNo  time    journeyTime length  speed1544    2024-01-01 00:00:00 1832    34439   18,79861582    2024-01-01 00:00:00 1524    28660   18,80581585    2024-01-01 00:00:00 1789    33634   18,80042063    2024-01-01 00:00:00 1987    38666   19,45952064    2024-01-01 00:00:00 1987    38666   19,45951544    2024-01-01 00:05:00 1830    34439   18,81911582    2024-01-01 00:05:00 1522    28660   18,83051585    2024-01-01 00:05:00 1788    33634   18,8112063    2024-01-01 00:05:00 1984    38666   19,48892064    2024-01-01 00:05:00 1987    38666   19,45951544    2024-01-01 00:10:00 1833    34439   18,78831582    2024-01-01 00:10:00 1523    28660   18,81811585    2024-01-01 00:10:00 1789    33634   18,80042063    2024-01-01 00:10:00 1987    38666   19,45952064    2024-01-01 00:10:00 1989    38666   19,4399

There are 300 different roads in total and I have 288 times of 5 minutes. I want to convert this data into minute and metric formats. For example, the speed at the 400th meter at 01:17. I tried using interpolation and regression to fill empty data but I couldn't


Viewing all articles
Browse latest Browse all 13951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>