Question
So here is my programming code question in python, what would be the code to answer this question? We regularly hear in the media terms
So here is my programming code question in python, what would be the code to answer this question?
We regularly hear in the media terms like the Silver Tsunami referring the fact that as time progresses we are having a higher percentage of the population in the 65 and older range. Is there a way we can easily validate this Silver Tsunami hypothesis? In this question you will try to use Census Canada data to validate this. To begin, download the following Canada Census data onpopulation within certain age segments from census data from 1921 to 2011and read it into a python program as a CSV file. From there, process the data so that you can output the following:
A row of the percentages (to 2 decimal places) separated by commas of the Canadian population 65 and over for each of the census years from 1921 to 2011.
Yes, if the percentages are always increasing (or at least not decreasing) over those years, and No if, in at least one place it decreases.
Use matplotlib to graph the data in this dataset so that it shows the proportions of each age group (again as a percentage of overall population) for each year of census data in the collection. Here you are free to choose what type of graph you think is best to show this.
I also leave it to you to decide how this program should be broken down into functions. However, as with the previous question, you have to do the parsing on your own - in other words, you cannot use an existing Python library to help deal/read/parse the CSV data. Those tools will come later in the course. Also, if you want your program to use your CSV file, be sure that you reference it properly AND include it with your python code files in the zip file you submit!
CSV File download link: https://ufile.io/wujmd
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started