Skip to content

Chen-Buynak-Guinness Tutorial 5 Submission#1

Open
mbuynak wants to merge 2 commits into
lyy005:masterfrom
yunluyingying:master
Open

Chen-Buynak-Guinness Tutorial 5 Submission#1
mbuynak wants to merge 2 commits into
lyy005:masterfrom
yunluyingying:master

Conversation

@mbuynak

@mbuynak mbuynak commented Sep 27, 2017

Copy link
Copy Markdown

exercise5.png, Figure1.png, & stdout.csv have solutions!

@mbuynak mbuynak changed the title YingYing Chen-Madeline Buynak Tutorial 5 Submission Chen-Buynak-Guinness Tutorial 5 Submission Sep 27, 2017
Comment thread Exercise_5.py
data1=data.iloc[:,0:2]
stdout=data1.drop_duplicates().sort_values(['gender','yearsExperience'])
stdout=pd.DataFrame(stdout)
stdout.to_csv('stdout.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

Comment thread Exercise_5.py
#The gender, yearsExperience, wage for the highest earners
data.sort_values('wage').tail(n=1).loc[:,['gender','yearsExperience','wage']]
#females in the top ten earners
sum(data.sort_values('wage').tail(n=10).iloc[:,0]=='female')

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 Exercise_5.py
plt.scatter(x,y)
plt.title('Effect of graduating college on the min wage')
plt.xlabel('yearsSchool')
plt.ylabel('Minimum wage')

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