for eg: in the pic the 'Time' with same value ie. 2016-11 which has the two separate values I want that to be added in a separate column. I am using pandas here.I'm a beginner so a simple reply is better.
Asked
Active
Viewed 7 times
0
-
1can you please post the raw data instead of image – Joe Ferndz Oct 16 '20 at 08:06
-
Check 11 Q/A in dupe – jezrael Oct 16 '20 at 08:07
-
you can do a groupby and sum on revenue to get the value – Joe Ferndz Oct 16 '20 at 08:07
-
You can do something as simple as df.groupby('Time')['Revenue'].sum() – Joe Ferndz Oct 16 '20 at 08:10