0

I have a dataframe df below

 df
 Col A   COl B   
  A       25
  A       25
  B       50
  B       50

I need below

 df1
 ColA    COL B   Sum
  A       25      50 
  A       25      50
  B       50      100
  B       50      100

Is there a way?

Dev P
  • 449
  • 3
  • 12

0 Answers0