Using two large data sets PyBank
and PyPoll
, create a script that summarizes the data and exports the results to a .txt file.
- Imported data from
.csv
files - Iterated through the data
- Calculated statics such as: sum, mean, max, min
- Created a
.txt
file that contains a summary of the findings
- A file called
main.py
contains the main script to run for each analysis. - A "Resources" folder that contains the CSV files used.
- An "analysis" folder that contains a
.txt
file that has the results from the analysis.
Summary of analysis output
Financial Analysis
----------------------------
Total Months: 86
Total: $38382578
Average Change: $-2315.12
Greatest Increase in Profits: Feb-2012 ($1926159)
Greatest Decrease in Profits: Sep-2013 ($-2196167)
Election Results
-------------------------
Total Votes: 3521001
-------------------------
Khan: 63.000% (2218231)
Correy: 20.000% (704200)
Li: 14.000% (492940)
O'Tooley: 3.000% (105630)
-------------------------
Winner: Khan
-------------------------