The template created in week one was updatedfor this assignment, particularly pandas was added to have descriptive statistics.
Data is loaded using panda.read_csv, and the function dataframe.describe() is used in module source_code.py to return the mean, min, percentiles and max.
Besides linting and formating, the code had two test:
- Checks if the file path is a csv file
- Checks if the output is a DataFrame
Just for the sake of ilustration, a plot was added to see the relationship between the instrumentalness and energy percentages of every song.