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),
Traceback the error to the first part that is in your code:
File "/home/runner/boilerplate-demographic-data-analyzer/demographic_data_analyzer.py", 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.