Module cogs.helpers.get_all

This file is responsible for handling all data operations such as showing songs that the user can select. Recommendation of songs filtering operations etc.

Functions

def filtered_songs()

This function returns songs and their track_name, artist, year and genre.

def get_all_songs()

This function returns all songs in the dataset. Uses tcc_ceds_music.csv

def get_all_songs_alternate()

This function returns all songs in the alternate dataset. Uses songs.csv

Filter the dataset based on the provided filter ranges for mood. The filters parameter is expected to be a dictionary with keys as feature names and values as a tuple of (min, max).

def recommend(input_songs)

This function returns recommended songs based on the songs that the user selected.