Error received on my Demographic Data Analyzer that i don’t understand, i’m not sure what i’m doing wrong or how to fix it
Copy of Code URL
https://repl.it/@KayannaMorgan/boilerplate-demographic-data-analyzer#demographic_data_analyzer.py
Error received on my Demographic Data Analyzer that i don’t understand, i’m not sure what i’m doing wrong or how to fix it
Copy of Code URL
https://repl.it/@KayannaMorgan/boilerplate-demographic-data-analyzer#demographic_data_analyzer.py
When trying new commands, it’s highly advised to actually test what they are doing on their own instead of just using them in a chain.
In this case, the .sum() method does just add up all values in a columng, which in case of strings just makes a longer string. Ofcourse if you then try to divide the string by an integer, that will throw an error.
@Jagaya Thanks a lot! I ended up starting over and ran each code line by line. I have a bad habit of just writing blocks of code and hoping for the best when hitting run.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.