The world of programming with Python
.
In these Analysis, have used the concepts i have learned to complete two
Python challenges,
PyBank
and PyPoll
. Both tasks present a real-world situation where newly developed Python scripting
skills come in handy.
Important
Key information users need to know to achieve their goal.
In this Analysis, created a Python
script to analyze the financial records of Banking
company.
Financial dataset
was given called budget_data.csv
. The dataset Was composed of two columns: "Date"
and "Profit/Losses"
.
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
In addition, final script has both print the analysis to the terminal and export a text file with the results at Analysis folder.
- 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 theelection
based on popular vote.
In addition, final script has both print the analysis to the terminal and export a text file with the results at Analysis folder.
Note
Useful information that users should know, even when skimming content.
- how to import modules like csv.
- have learned how to read and write files in various formats.
- how to store content in variables lists, and dictionaries.
- learned how to iterate through basic data structures.
- learned how to debug along the way. Using all that i have learned, try to break down my tasks into discrete mini-objectives.
The datasets for these Challenges were quite large. This was done purposefully to showcase one of the limits of Excel-based analysis.
Tip
Helpful advice for doing things better or more easily.
In conclusion, As a data analysts; our first instinct is often to go straight to Excel, but creating scripts in Python can provide us with more powerful options for handling big data.
Note
Useful information that users should know, even when skimming content.
- Inside my local
Git
repository, created a folder for each Analysis byPython
and name themPyBank
andPyPoll
.
- A new file called
main.py
. This will be the main script to run for each analysis. - A
Resources
folder that contains theCSV
files i have used. Assured that myscript
has the correct path to theCSV
file. - An
analysis
folder that contains text file that has the results from each analysis. - Pushed these changes to
GitHub
profile bybash terminal.