I'd like to filter for customer_id's
that were not present in the previous data so all new_customer_ids
that were new on the 2020-01-10 and not present on the 2020-01-01
Main_df
date customer_id amount_spent
2020-01-01 24 123
2020-01-10 24 145
2020-01-01 58 89
2020-01-10 58 67
2020-01-01 98 34
2020-01-10 99 86
2020-01-10 67 140
2020-01-10 32 321
2020-01-10 75 76
Output_df
new_customer_id amount_spent
32 321
75 76
67 140
I have tried to use the shift function in Pandas but this did not work for me
EDIT
df = pd.DataFrame([["2020-01-01",24,123],
["2020-01-10",24,145],
["2020-01-01",58,89],
["2020-01-10",58,67],
["2020-01-01",98,34],
["2020-01-10",98,86],
["2020-01-10",67,140],
["2020-01-10",32,321],
["2020-01-10",75,76]],columns = ["date","customer_id","amount_spent" ])