You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project consists of two Python challenges that have real-world situations: PyBank and PyPoll.
Before beginning, a repository named "python-challenge" had to be created and cloned to my local computer. Within the repository, two main directories were created (PyBank and PyPoll), each containing folders: Resource and analysis. The Resource folder had to have a csv file that is paticular to the assignment. The analysis folder will hold the final .txt file with the results. Lastly, the final product of my endeavour was having a main.py file which contained the solved Python script!
PyBank
Scenario: create a Python script that analyzes financial records of a company. I must use the dataset budget_data.csv
Tasks:
Import, open csv file
Calculate total number of months included in dataset
The net total amount of "Profit/Losses" over the entire period
Calculate the changes in "Profit/Losses" over the entire period, then find the average of those changes
The greatest increase in profits (date and amount) over the entire period
The greatest decrease in losses (date and amount) over the entire period
PyPoll
Scenario: create a Python script that helps a small, rural town modernize its voting process. I must use the dataset election_data.csv