Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz give me the right answer and python code of this questionthx the file cps_march_2016.csv It is well-known that on average, women are paid less

plz give me the right answer and python code of this questionthx
image text in transcribed
the file cps_march_2016.csv
image text in transcribed
image text in transcribed
image text in transcribed
It is well-known that on average, women are paid less than men. However, one might be curious to know whether this depends on educational attainment is the gender pay gap larger or smaller for people with advanced degrees? Let's dig into this question. The nle PS March 2016.cs contains the hourly wage, level of education, gender, and full-time work status of a sample of US workers from the Current Population Survey (CPS) from March 2016 Part (a): 1. In the following code cell, import the file "CPS_March_2016.csv into a Pandas dataframe. Be careful with missing values 2 Drop workers who didn't work ful time last year or whose hourly wage was less than $5 or more than $200 3. Print a complete sentence reporting the number of observations, the number of temales, and the number of males in the cleaned sample. 4 Print a complete sentence reporting the average hourty wage for females and for males. Report the numbers in dollars and cents Part (b) 1. Compute the average wage for men and the average wage for women with a college degree. 2 Compute the average wage for men and the average wage for women with a graduate degree 3 Report, in a complete sentence, the ratio of the female avg wage to the male average wage for those with a college degree. Report three decimal places 4 Report, in a complete sentence, the ratio of the female avg wage to the male average wage for those with a graduate degree. Report three decimal places 5 Repeat steps 1-4, but computing the standard deviations of the wages In 1

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

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

If you were Adidas, how would you compete with Nike?

Answered: 1 week ago

Question

Mission and Vision of Share our Strength (SOS) Foundation

Answered: 1 week ago