Unable to find a solution for this so apologies if this seems simple.
I have a df as follows :
ID, Week
5, 1
6, 1
7, 1
I have a list of reason codes as follows
['Work', 'Holiday', 'Sick', 'Jury']
What I'm trying to do is add this to my current dataframe but multiply this by each unique ID
so i would have something like (i'll only use 1 unique ID for brevity).,
ID, Week, Reason
5, 1, 'Work'
5, 1, 'Holiday'
5, 1, 'Sick',
5, 1, 'Jury'
I have tried all manner of concats, with varying axis's but I'm none-the-wiser how to approach this.
any help would be greatly appreciated.