I have the following dataframe:
df
Date Application Weekday
02.01 A 3
02.01 B 3
03.01 A 4
03.01 B 4
04.01 A 5
04.01 B 5
05.01 A 6
05.01 B 6
And I want to filter out the weekdays: 5,6 and want to have a new index based on the dates, that means i would like to get:
df
Date Application Weekday Index
02.01 A 3 1
02.01 B 3 1
03.01 A 4 2
03.01 B 4 2
How can i get that?