Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

As I am in the intro class, please don't use panda or another fancy coding. Filename: suffrage.py Also submit: A screenshot (or download) of your

image text in transcribed

As I am in the intro class, please don't use panda or another fancy coding.

Filename: suffrage.py Also submit: A screenshot (or download) of your plot Input files: Download 1920 women voters.csv and save it in the same directory as your suffrage.py file For this problem, we're looking at voter registration data from 1920 Boston - the year the 19th amendment passed and women gained the right to vote. I'm interested in the ages of women who registered to vote that year... was it a surge of young people going to the polls? Older women who had been fighting for this right? Or was there an even distribution across age groups? Let's find out! Each line in the file represents one female voter. The voter's age is in position 10. Create a list of all ages (a list of ints), which you update each time you read a line from the file. We don't have age data for everyone, so if that column is empty for a given line, you can simply skip over that voter. Create a bar chart showing the number of women from the file in their 20s,30s,40s,50s, and 60-plus; each bar representing one of the age ranges. As always, we expect your plot to have labels and titles, and to be clear and informative for the user

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students explore these related Databases questions