-2

DataFrame in question

I need to find out total invoice value for each supplier and create a new dataframe with unique supplier names as follows.

Final Output desired

Ashok
  • 1
  • 1
  • 3
    Please post the data in a minimally reproducible example. https://stackoverflow.com/help/minimal-reproducible-example. Also, show the code you have tried. – Paul Brennan Dec 22 '20 at 15:19

1 Answers1

0

Try this:

sum_by_supplier = (df.groupby('Supplier Name')['Invoice Value'].sum()).reset_index()
sophocles
  • 13,593
  • 3
  • 14
  • 33