Home > Blockchain >  How can I smooth a graph with hundreds of points?
How can I smooth a graph with hundreds of points?

Time:11-17

I'm working with data from my Spotify account and I've created a dataframe that contains all the minutes in the day and the total playtime during that minute for the last 5 years. The dataframe is this (by the way, I wonder if there is any way to work with time without having to select a specific date):

                    time   playtime
0    1970-01-01 00:00:00  47.138733
1    1970-01-01 00:01:00  52.419767
2    1970-01-01 00:02:00  47.943567
3    1970-01-01 00:03:00  43.322283
4    1970-01-01 00:04:00  58.029217
...                  ...        ...
1435 1970-01-01 23:55:00  46.276150
1436 1970-01-01 23:56:00  53.202717
1437 1970-01-01 23:57:00  49.844367
1438 1970-01-01 23:58:00  62.703600
1439 1970-01-01 23:59:00  55.437700

I've plotted the dataframe in order to obtain a visualization of how much music I listen during the day. This is the graph:

enter image description here

  • Related