I am new to pandas. I have a dataframe that looks like this
sitename name date count 0 chess.com Autobiographer 2012-05-01 2 1 chess.com Autobiographer 2012-05-05 1 2 chess.com Autobiographer 2012-05-15 1 3 chess.com Autobiographer 2012-05-01 1 4 chess.com Autobiographer 2012-05-15 1 5 chess.com Autobiographer 2012-05-01 1 How to merge the rows based on date and sum up the count for the same date. Like in sql
select sitename, name, date count(*) from table group by date
df = dataframe.groupby('date'). I got this error pandas.core.groupby.DataFrameGroupBy object at 0x7f0d2de6f9d0> <pandas.core.groupby.DataFrameGroupBy object at 0x32bdb90>