I want to plot a graph using jupyter noterbook + plotly, based on data that I have grouped by day and ID.
The DataFrame looks like this:
I have tried this in matplotlib but I couldn't figure it out either.
What I want is a graph, with x = hour column and y shows the counts. For example:
Hour 0: x[0] = [2622, 48, 374, 210, 305, 1427, 83, 12]
Hour 1: x[1] = [2920, 25, 357, 140, 283, 79, 14, 53]
...
with x = [0, 1, 2, ..., 23]
That means each x have many y-values. How can I plot this in plotly? Do I have to do a dimension reduction? If yes, how?
Thanks in advance for help!


