I have three lists for a dataframe. I am trying to map the multiple values in one list to one value in another list to then have the value repeat in the dataframe.
Here is my list and expected out:
ID_lst = [1234, 1235, 1236, ...]
Reason_lst = [[Happiness, Sadness, Depression, Love], [Anger, Grumpy], [Grieving, Sarcastic, Love], ....]
TestDate_lst = [2022-03-24, 2022-07-25, 2022-08-26, ....]
Expected Output in Dataframe:
ID Reason_lst TestDate
1234 Happiness 2022-03-24
1234 Sadness 2022-03-24
1234 Depression 2022-03-24
1234 Love 2022-03-24
1235 Anger 2022-07-25
1235 Grumpy 2022-07-25
1236 Grieving 2022-08-26
1236 Sarcastic 2022-08-26
1236 Love 2022-08-26
I am imagining that I can use the map function to do this but haven't figured out how to wrap my head around this one.