Homework 2: Matplotlib and Data Visualization
Overview
These data visualizations were created for my introductory computer science course using Python. The purpose of this homework assignment was to familiarize ourselves with Matplotlib and CSV files.
Five Most Common Ages of Bachelor contestants
In this pie chart, I wanted to look into the five most common ages of Bachelor contestants. The percentages displayed on the pie chart show the percentage each age constitutes out of the five ages. It is important to note that while these percentages add up to 100%, the ages of Bachelor contestants are not contained within these five numbers.
A big thank you to Adam Erispaha for creating this CSV file. All of this data was sourced from Data World.
More datasets on Bachelor contestants can be found at the same website!
Player Performance
For my second plot, I created a grouped bar chart. Here, I analyzed a few statistics of specific NBA players. I used the data of their True Shooting %(TS%), 3 Point Attempt Rate(3PAr), Free Throw Attempt Rate(FTr) to see how they are performing. It is important to note that the statistics are not completely up to date. This was solely created based off of the data from the CSV file.
A big thank you to Umut Alpaydin for creating this CSV file. All of this data was sourced from Kaggle.
If you are interested in learning what these statistics mean, below are some good articles to read more about these terms:
The project instructions can be found here! More datasets on the NBA 2020-2021 Season Player Stats can be found at the same website!
Credits
Here are some helpful resources I used for this project: