Python Challenge - Module 3
I analyzed the records of two csv files create a Python script, my calculation was each file. I could do the following:
a. PyBank:The dataset is composed of two columns: "Date" and "Prot/Losses". I analyzed the records to calculate each of the following values:
- The total number of months included in the dataset.
- The net total amount of "Prot/Losses" over the entire period.
- The changes in "Prot/Losses" over the entire period, and then the average of those changes.
- The greatest increase in prots (date and amount) over the entire period.
- The greatest decrease in prots (date and amount) over the entire period.
b. Pyboll:The dataset is composed of three columns: "Voter ID", "County", and "Candidate. I analized the votes and calculates each of the following values:
- 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.