Tell us what’s happening:
Describe your issue in detail here.
What country has the highest percentage of people that earn >50K and what is that percentage?
The answer in the test module is given as Iran. I just want to confirm if this is the right answer, because all the experiments I did with the code point to USA being the right answer
Your code so far
highest_earning_country = df[(df[‘native-country’] != ‘?’) & (df[‘salary’] == ‘>50K’)].groupby([‘native-country’])[‘salary’].count().sort_values(ascending=False)
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/184.108.40.206 Safari/537.36
Challenge: Data Analysis with Python Projects - Demographic Data Analyzer
Link to the challenge: