Skip to content

sampathkumar-mitchell submission#4

Open
bsampath17 wants to merge 3 commits into
lyy005:masterfrom
bsampath17:master
Open

sampathkumar-mitchell submission#4
bsampath17 wants to merge 3 commits into
lyy005:masterfrom
bsampath17:master

Conversation

@bsampath17

Copy link
Copy Markdown

No description provided.

Comment thread EX_5_Script
wages_csv=pandas.read_csv("wages.csv")
col_unq_sort_gen_yrs = (wages_csv.iloc[:,0:2]).drop_duplicates(keep='first').sort_values(by='gender', ascending=True).sort_values(by= 'yearsExperience', ascending=True)
col_unq_sort_gen_yrs.to_csv('ex5.csv', sep=' ', index=False)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Comment thread EX_5_Script
earner_top10_w = wages_csv.sort_values(by='wage', ascending=False).iloc[0:11, [0,1,3]]
earner_number_of_women = (earner_top10_w[earner_top10_w.gender=="female"]).shape[0]
print (earner_number_of_women)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Comment thread EX_5_Script
min_wages_12 = (wages_csv[wages_csv.yearsSchool==12]).sort_values(by='wage', ascending=True).iloc[0:1, 3]
min_wages_16 = (wages_csv[wages_csv.yearsSchool==16]).sort_values(by='wage', ascending=True).iloc[0:1, 3]
print (min_wages_16.values - min_wages_12.values)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants