bugarin10 / rd278-w2-pandas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test workflow for Python template

Descriptive Statistics

Goals:

The template created in week one was updatedfor this assignment, particularly pandas was added to have descriptive statistics.

Functions implemented

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.

Test:

Besides linting and formating, the code had two test:

  1. Checks if the file path is a csv file
  2. Checks if the output is a DataFrame

A Scatter plot

Just for the sake of ilustration, a plot was added to see the relationship between the instrumentalness and energy percentages of every song.

Scatter plot

About


Languages

Language:Python 65.8%Language:Makefile 24.8%Language:Dockerfile 9.4%