Python demo code in the appendix contains a bug. #92
stephan-jacobs
started this conversation in
Error report
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I run the code on the Appendix page for fpppy here: https://otexts.com/fpppy/UsingPython.html
I get the error:
ValueError: could not convert string to float: 'Victoria'I don't know why it's trying to convert 'Victoria' (or the State column rather) into a float, but the only way I get it to work is to drop all the columns containing strings.
Beta Was this translation helpful? Give feedback.
All reactions