nguyenanhtuan11041998 / DeveloperCirclesVietnamInnovationChallenge

0 stars 0 forks source link

Assignment - 02: Pandas & Seaborn #2

Open thanhhff opened 3 years ago

thanhhff commented 3 years ago

Bonus

Visualize top 5 Jobs with BasePay, Benefits and OvertimePay

Keyword: index, isin, groupby, mean, plot

top5 = sal['JobTitle'].value_counts()[:5]
sal[sal['JobTitle'].isin(top5.index)].groupby('JobTitle').mean()[['BasePay', 'Benefits', 'OvertimePay']].plot(kind='barh')