Demographic Data Analyzer - Error Msg

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

1 Like

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.

1 Like