Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do NOT use import pandas, thank you! Filename: suffrage.py Also submit: A screenshot (or download) of your plot Input files: Download 1920 women voters,

Please do NOT use import pandas, thank you! image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 3

blur-text-image

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

Employ effective vocal cues Employ effective visual cues

Answered: 1 week ago