I am using pandas to show dataframe, and my df looks like so:
Day Hour Name Msg
sunday 10 a b
sunday 11 a b
sunday 11 a b
monday 12 a b
tuesday 10 a b
tuesday 10 a b
now I want to summarize it to look like so:
sunday 3
monday 1
tuesday 2
and put this data in a dataframe so I will be able to plot it.
any idea how can I do it? thank you!



