This repo contains the python scripts to analyze two different data sets leveraging the concepts learnt in Module 3 - Python.
This challenge requires the python script to be able to analyze the budget data and provide the financial analysis on the dataset.
Below are all the tasks performed in the main.py script under PyBank:
- Read the budget_data.csv under the PyBank/Resources folder and calculates the below
- The total number of months included in the dataset
- The net total amount of "Profit/Losses" over the entire period
- The changes in "Profit/Losses" over the entire period, and then the average of those changes
- The greatest increase in profits (date and amount) over the entire period
- The greatest decrease in profits (date and amount) over the entire period
- Prints the results to both terminal and ouput file under PyBank/analysis folder
This challenge requires the python script to be able to analyze the election data and provide the election results based on the given dataset.
Below are all the tasks performed by the main.py script under PyPoll
- Read the election_data.csv under the PyPoll/Resources folder and calculates the below
- 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
- Prints the results to both terminal and ouput file under PyPoll/analysis folder
- Refered to syntax and usages in our activitiy modules on dictionaries, file read and writes