The template created in week one was updatedfor this assignment, particularly pandas was added to have descriptive statistics.
Data is loaded using polars.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 polar DataFrame
Just for the sake of ilustration, a plot was added to see the relationship between the GDP per Capita and the Average income, the data is for Countries and the size of each circle is proportional to the population of each country.