I want to get the number of days corresponding to the date for each country. I have a dataset like so:
Date Country
01/03/2020 USA
02/03/2020 USA
03/03/2020 USA
07/04/2020 UK
08/04/2020 UK
09/04/2020 UK
And I want to get the day numbers based on their first date the country is mentioned. So something like this:
Date Country Day_Number
01/03/2020 USA 1
02/03/2020 USA 2
03/03/2020 USA 3
07/04/2020 UK 1
08/04/2020 UK 2
09/04/2020 UK 3
Any help is appreciated. Thanks in advance.