{"id":24562670,"url":"https://github.com/wrighang/03_python-challenge","last_synced_at":"2026-01-03T07:39:01.470Z","repository":{"id":257923286,"uuid":"873165657","full_name":"wrighang/03_python-challenge","owner":"wrighang","description":"Module 3: Python","archived":false,"fork":false,"pushed_at":"2025-01-04T18:54:16.000Z","size":1660,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T09:16:50.701Z","etag":null,"topics":["for-loop","load-csv","python-lists","python-script"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wrighang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-15T17:54:41.000Z","updated_at":"2025-01-04T18:54:19.000Z","dependencies_parsed_at":"2024-10-17T01:48:08.125Z","dependency_job_id":"5b884526-007a-4b9c-9bc8-ac7b4fab9bab","html_url":"https://github.com/wrighang/03_python-challenge","commit_stats":null,"previous_names":["wrighang/03_python-challenge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F03_python-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F03_python-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F03_python-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F03_python-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wrighang","download_url":"https://codeload.github.com/wrighang/03_python-challenge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945623,"owners_count":20372897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["for-loop","load-csv","python-lists","python-script"],"created_at":"2025-01-23T09:16:57.845Z","updated_at":"2026-01-03T07:39:01.427Z","avatar_url":"https://github.com/wrighang.png","language":"Python","readme":"# 03_python-challenge\n\n# Deliverable(s)\n[PyBank.py](https://github.com/wrighang/03_python-challenge/blob/main/PyBank/main.py)\n\n[PyPoll.py](https://github.com/wrighang/03_python-challenge/blob/main/PyPoll/main.py)\n\n## PyBank Instructions\n\nIn this challenge, you are tasked with creating a Python script to analyze the financial records of your company.\nYou will be given a financial dataset called `budget_data.csv`. The dataset is composed of two columns:\n- \"Date\"\n- \"Profit/Losses\"\n\nYour task is to create a Python script that analyzes the records to calculate each of the following values:\n\n- The total number of months included in the dataset\n- The net total amount of \"Profit/Losses\" over the entire period\n- The changes in \"Profit/Losses\" over the entire period, and then the average of those changes\n- The greatest increase in profits (date and amount) over the entire period\n- The greatest decrease in profits (date and amount) over the entire period\n\n## PyBank Instructions\n\nIn this challenge, you are tasked with creating a Python script to analyze the financial records of your company.\nYou will be given a financial dataset called `budget_data.csv`. The dataset is composed of two columns:\n- \"Date\"\n- \"Profit/Losses\"\n\nYour task is to create a Python script that analyzes the records to calculate each of the following values:\n\n- The total number of months included in the dataset\n- The net total amount of \"Profit/Losses\" over the entire period\n- The changes in \"Profit/Losses\" over the entire period, and then the average of those changes\n- The greatest increase in profits (date and amount) over the entire period\n- The greatest decrease in profits (date and amount) over the entire period\n\n## Requirements\n\n### Correctly Reads in the CSV\nReads in the CSVs for both PyBank and PyPoll using Python:\n- Reads and stores header row\n\n### Results Printed to Terminal\nResults correctly display for PyBank:\n- Total Months\n- Total\n- Average Change\n- Greatest Increase\n- Greatest Decrease\n\nResults correctly display for PyPoll:\n- Total Votes\n- Each candidate’s total votes and percent of votes\n- Winner\n\n### Code Runs Error Free\n- Runs without errors\n- Produces consistent results\n\n### Exports Results to Text File\nThe text file contains the following for PyBank:\n- Total Months\n- Total\n- Average Change\n- Greatest Increase\n- Greatest Decrease\n\nThe text file contains the following for PyPoll:\n- Total Votes\n- Each candidate’s total votes and percent of votes\n- Winner\n\n### Code is Cleaned and Commented\n- Additional tests and debugging removed\n- Code is properly commented\n\n============================================================================\n## CODING_PROCESS\n\nPyBank- I began with looking at the Excel sheet to see how I would solve for intended results. After I was able to solve it in Excel, I began writing the python code and broke it out into section to follow the path of how I would solve it manually in Excel. I was able to calculate the # number of month, however, i had trouble figuring out how to do the sum of the profit/loss column and used learning assistance for help to better understand the adding of the increments. There were a few other road blocks along the way with how to structure the code and i used learning assistant to explain what i was trying to achieve which helped. I also used it for finding out how to create and write to a text file. The final py doc is the cleaned up version from the various attemps I had made to achieve the correct result. \n\nPyPoll- I begin looking at Excel to solve this sheet as well, however, it was a bit tricker as I couldn't figure out how to capture unique values. In Thursdays class, it was suggested to create a dictionay which then I applied to my code and with some xpert assistant i was able to figure out how to call out the unique candidates as well as count the votes. \n\nFor both .py docs i created comments throughout to code to illustrate my thought process and understanding of what each line is doing.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrighang%2F03_python-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrighang%2F03_python-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrighang%2F03_python-challenge/lists"}