Jump to content

Python Error NaN in Logistic Regression

Hey guys. Getting an error while using Logistic Regression in Jupyter. Please help out. I have tried .fillna and rechecked for any null value( there are none but still the error). The dataset here is the Titanic dataset from Kaggle.

Screenshot_20200315182329.png

Link to comment
Share on other sites

Link to post
Share on other sites

The problem is explained in the error, a value from the dataset was not a number or otherwise incompatible with the type the program expects. You can catch that exception and handle it as you wish depending on what the goal is - I would just discard that entry and move on.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×