Skip to content

Instantly share code, notes, and snippets.

@FelixChop
Created April 22, 2020 09:06
Show Gist options
  • Save FelixChop/34e32fde5f1d792149f849da1fb8bd17 to your computer and use it in GitHub Desktop.
Save FelixChop/34e32fde5f1d792149f849da1fb8bd17 to your computer and use it in GitHub Desktop.
data.fillna('missing', inplace=True)
# or, for instance, if your data is numeric
data.fillna(-9999, inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment