I have a pandas dataframe (1461060, 3) like this:
| date | ID | period | |:--------- |:--:| ------:| | 2021-01-14| 1| 1 | | 2021-01-14| 1|