0

I have a CSV with rows of data in the rows:

Data:

jobID | industry | clicks

job1, healthcare, 20

job1, healthcare, 30

job2, medicine, 40

job2, medicine, 50

Expected Output:

job1, healthcare, 50

job2, medicine, 90

There are multiple jobIDs and each row represents a day. How can I concatenate the rows with the same jobID with the clicks being added? I'm using python with pandas.

I tried using the pd.concantenate() but there are so many rows of the same jobID so I'd have to write every row.

Sunisc
  • 23
  • 1
  • 5

0 Answers0