I have a variable, playlists, which I want to assign a categorical variable which takes values of "sleep" or "no_sleep", for each playlist. I have both lists with sleep / no sleep already assign as follows: Sleep: "Peaceful piano", "sleep", "Baby Sleep Aid", "White Noise"
No_sleep: "Dance Hits", "Dance Classics", "Massive Dance Hits", "Dance Party" : ("Spotify", "37i9dQZF1DXaXB8fQg7xif")
How do I add the new variable to the pd.dataframe and assign the values? I imagine an if function for sleep and everything else is No_sleep, but not sure how to get started.