fma icon indicating copy to clipboard operation
fma copied to clipboard

Selecting Subset of Multiple Genres

Open dylanprins opened this issue 4 years ago • 0 comments

Hi! I'm trying to figure out how i can obtain a subset of tracks using a list of genres. I picked a couple of genres. using a list like ["genre1", "genre2", ...] i want to slice the multiindex tracks so i only have the metadata for the tracks of those genres.

With tracks i mean the result you get when loading the tracks.csv.

This way i can feed tracks['track', 'genres_all'] too the fit transform/LabelBinarizer but now i only have the tracks with the genres i picked.

Kind regards, Dylan.

dylanprins avatar Dec 20 '21 12:12 dylanprins