pylyrics2.download_data

Module Contents

Functions

download_data(dataset, file_path, columns)

Downloads dataset from kaggle to filepath and creates a dataframe with input columns

pylyrics2.download_data.download_data(dataset, file_path, columns)[source]

Downloads dataset from kaggle to filepath and creates a dataframe with input columns

Parameters
  • dataset (str) – kaggle dataset name to download

  • file_path (str) – location to save the file

  • columns (list) – list of columns to create a dataframe

Returns

A dataframe with the given column names

Return type

df

Example

from pylyrics2 import download_data download_data(“geomack/spotifyclassification”, “data/spotify_attributes”, [“song_title”, “artist”]) spotify_df = download_data(“geomack/spotifyclassification”, “data/spotify_attributes”, [“song_title”, “artist”])