Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created December 22, 2021 03:28
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 quantra-go-algo/2a5ce99125d16624de1c62f44b2bf007 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/2a5ce99125d16624de1c62f44b2bf007 to your computer and use it in GitHub Desktop.
#For filling all the missed values as 0
data = data.fillna(0)
#For replacing missed values with median of columns
data = data.fillna(data.median())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment