There is a dataframe of id's in the rows and columns that represent the number of times a user has visited the website.I would like a daywise view of all the user id's who have visited the website which in turn is represented by all value greater than or equal to 1
Df
Codes 2022-09-04 2022-09-03 2022-09-02
A1AA 1 0 0
A1BB 0 0 2
A1CC 5 0 0
A2DD 0 5 0
A1EE 0 1 0
A1AA 0 0 1
Expected Output
Dates Codes
2022-09-04 A1AA
2022-09-04 A1CC
2022-09-03 A2DD
2022-09-03 A1EE
2022-09-02 A1BB
2022-09-02 A1AA