Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created December 22, 2021 03:28
Show Gist options
  • 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