Hi everyone!
I have some random sample problems to solve, while it's really hard for me to share the use case and data, I made up this following case that would eventually fit what I need:
Attached is the Top Spotify songs data from Kaggle. Top Spotify songs from 2010-2019 - BY YEAR | Kaggle
I want to make a workflow to random select a playlist that meets all the criteria below:
1. The whole playlist is as close to 75 mins the better (data is in seconds under "dur" in the dataset)
2. "dance pop" is not more than 25% of the playtime
3. "artist" are not to repeat so every person has equal chance
4. the playlist should cover songs from at least 5 different years
Anyone may know how to solve it?
Thanks!🙏