Skip to content

The PyBank and PyPoll projects collects data from financial and polling sources to display a statical analysis on the sample collection..

Notifications You must be signed in to change notification settings

tinaland101/python-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

python-challenge

PyPoll: Election Data Analysis

Overview

The PyPoll project analyzes election data to calculate the following:

  • Total Votes: The total number of votes cast in the election.
  • Candidates: The list of candidates who received votes.
  • Vote Percentage: The percentage of total votes each candidate received.
  • Winner: The candidate who received the most votes.

The project processes a CSV file containing the election data and displays the results in the terminal and also saves them in a text file.

PyBank: Financial Analysis

Overview

The PyBank project analyzes a company's financial records to compute important financial metrics over a given period. Using Python, we analyze a dataset that contains the company’s monthly profits and losses, and output the following results:

  • Total Months: The number of months in the dataset.
  • Total Profit/Losses: The sum of profit/loss for all months.
  • Average Change: The average change in profit/loss from month to month.
  • Greatest Increase in Profits: The month with the greatest increase in profit.
  • Greatest Decrease in Profits: The month with the greatest decrease in profit.

The project reads in a CSV file, performs the necessary calculations, and outputs both the results in the terminal and as a text file.

About

The PyBank and PyPoll projects collects data from financial and polling sources to display a statical analysis on the sample collection..

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages