I have the following dataframe
|user_id|prch_type|purchase_dt| ------------------------------- | 1 | F |2020-01-01| | 1 | F |2020-01-02|