Data Analysis with Python Projects - Demographic Data Analyzer-dependencies problems

Tell us what’s happening:
Hello everyone,
I have been working on this project on notebook and every thing worked correctly, but it is not the case in replit, it is giving me an AttriputeError, i try the solution given in this issue
i uninstall pandas and reinstall it, but still does not work (it is given me different error),

thanks in advance for your help

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0

Challenge: Data Analysis with Python Projects - Demographic Data Analyzer

Link to the challenge:

here is the replit link

Traceback the error to the first part that is in your code:

  File "/home/runner/boilerplate-demographic-data-analyzer/", line 47, in calculate_demographic_data
    highest_earning_country_percentage = (highest_earning_country*100/all_salary).max()

and since the error is complaining about types, you should print highest_earning_country to see why the calculation does not work.

Please post errors in code blocks for readability and searchability.

hello thank you, it work, i was messing with types :upside_down_face:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.