Skip to content

Using python to count number of votes from the voters data provided, and to create summary of company's profit/loss data for 86 months. Using python to read respective CSV's and print output in both terminal and a text file.

Notifications You must be signed in to change notification settings

Umarfoo/Banks_and_Polls_Calculations_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python - Banks and Polls Calculations

Task Details

In this project, I was given two data sets for analysis and printing out the outcome in the terminal as well as exporting a txt file.

Applying python concepts to run analysis of PyBank and PyPoll file. Both of these challenges encompasses a real-world situation.

PyBank

In this task, I was provided the data of a firms monthly income for 86 months and I had to analyis the following details using python code:

  1. The total number of months included in the dataset
  2. The net total amount of "Profit/Losses" over the entire period
  3. The average of the changes in "Profit/Losses" over the entire period
  4. The greatest increase in profits (date and amount) over the entire period
  5. The greatest decrease in losses (date and amount) over the entire period

After running the python code following outcomes were acheived: PyBank Results

PyPoll

In this challenge, I was tasked with helping a small, rural town modernize its vote-counting process.

I was given a set of poll data in CSV format containing more then 3 Million rows. The dataset was composed of three columns: Voter ID, County, and Candidate. I was tasked to create a Python script that analyzes the votes and calculates each of the following:

  1. The total number of votes cast
  2. A complete list of candidates who received votes
  3. The percentage of votes each candidate won
  4. The total number of votes each candidate won
  5. The winner of the election based on popular vote.

After running the python code following outcomes were acheived: PyPoll Results

About

Using python to count number of votes from the voters data provided, and to create summary of company's profit/loss data for 86 months. Using python to read respective CSV's and print output in both terminal and a text file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages