This dataframe is obtained from a timeseries resample operation as shown below
Ticket Priority
Submit Date
2018-01-02 04:00:00 1 P3 - Normal
2018-01-02 08:00:00 18 P3 - NormalP3 - NormalP3 - NormalP3 - NormalP3...
2018-01-02 12:00:00 23 P2 - HighP3 - NormalP3 - NormalP3 - NormalP3 -...
2018-01-02 16:00:00 1 P3 - Normal
2018-01-02 20:00:00 0 0
2018-01-03 00:00:00 0 0
2018-01-03 04:00:00 1 P3 - Normal
2018-01-03 08:00:00 3 P3 - NormalP3 - NormalP3 - Normal
what I'm looking to get actually is something like this:
Ticket Priority
Submit Date
2018-01-02 04:00:00 1 P3 - Normal = 1
2018-01-02 08:00:00 18 P3 - Normal = 4
2018-01-02 12:00:00 23 P2 - High = 1
P3 - Normal = 3
2018-01-02 16:00:00 1 P3 - Normal = 1
2018-01-02 20:00:00 0 0
2018-01-03 00:00:00 0 0
2018-01-03 04:00:00 1 P3 - Normal = 1
2018-01-03 08:00:00 3 P3 - Normal = 3
where the Priority column lists the type of ticket and the count of occurrence of each of those ticket types.