This project contains 2 parts. The first part is under the PyBank folder, its aim is to use a Python script to read the budget_data.csv file (under the Resources folder) and analyses the records to calculate each of the following:
* The total number of months included in the dataset
* The net total amount of "Profit/Losses" over the entire period
* The average of the changes in "Profit/Losses" over the entire period
* The greatest increase in profits (date and amount) over the entire period
* The greatest decrease in losses (date and amount) over the entire period
The second part is under the PyPoll folder, its aim is to use a Python script to read the election_data.csv file(under the Resources folder) and analyses the votes and calculates each of the following:
* The total number of votes cast
* A complete list of candidates who received votes
* The percentage of votes each candidate won
* The total number of votes each candidate won
* The winner of the election based on popular vote.
Python 3.8.5
To run the respectibve projects, following the instructions below:
-
To run the PyBank project
-
Download and extract the zip file
-
Open Terminal (on Mac) or Open Bash (on PC)
-
Navigate to the PyBank folder
-
Run the main.py file
-
To run the PyPoll project
-
Download and extract the zip file
-
Open Terminal (on Mac) or Open Bash (on PC)
-
Navigate to the PyPoll folder
-
Run the main.py file