Skip to content

Instantly share code, notes, and snippets.

@nygeog
Last active August 29, 2015 14:00
Show Gist options
  • Save nygeog/11196660 to your computer and use it in GitHub Desktop.
Save nygeog/11196660 to your computer and use it in GitHub Desktop.
Pandas: Replace misssing data with zero
#pandas replace all missing values 1,,,9 with zero's 1,0,0,9
df = df.fillna(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment