I've got a data set that has companies with a daily production rate of a product. I want to add a column to that dataframe which will sequentially number based on that company by date.
Ex.
Acme Product1 1/1/2000 5
Acme Product1 1/2/2000 7
Acme Product2 3/1/2000 9
Acme Product2 3/2/2000 4
Company2 ProductX 4/1/2015 6
Company2 ProductX 4/2/2015 3
I want to add a new column like:
Acme Product1 1/1/2000 5 1
Acme Product1 1/2/2000 7 2
Acme Product2 3/1/2000 9 1
Acme Product2 3/2/2000 4 2
Company2 ProductX 4/1/2015 6 1
Company2 ProductX 4/2/2015 3 2
Company2 ProductX 4/2/2015 2 3
This is all so that I can compare companies and their products based on the new column. So all of their day one production for a product regardless of date.