Skip to content

Instantly share code, notes, and snippets.

@merishnaSuwal
Created November 9, 2020 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merishnaSuwal/8694322d7e53d6668fefeb04e60c7703 to your computer and use it in GitHub Desktop.
Save merishnaSuwal/8694322d7e53d6668fefeb04e60c7703 to your computer and use it in GitHub Desktop.
# Replacing ? into NaN values
dataset.replace(to_replace='?', inplace=True, value=np.NaN)
# Count the number of null values
dataset.isnull().sum()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment