I have a very large dataframe with multiple years of sales data and tens of thousands of skew_ids (i.e.):
date skew_id units_sold
0 2001-01-01 123 1
1 2001-01-02 123 2
2 2001-01-03 123 3
3 2001-01-01 456 4
4 2001-01-02 456 5
...
I have another dataframe that maps skew_ids to skew_price (i.e.):
skew_id skew_price
0 123 100.00
1 456 10.00
...
My first dataframe is so large that I cannot merge without hitting my memory limit.
I'd like to calculate the daily revenues (i.e.):
date revenue
0 2001-01-01 140
1 2001-01-02 250
2 2001-01-03 300
...