Skip to content

Instantly share code, notes, and snippets.

@lapis-zero09
Created June 15, 2017 12:21
Show Gist options
  • Save lapis-zero09/a6827702a8ad021e8a767441e03a9418 to your computer and use it in GitHub Desktop.
Save lapis-zero09/a6827702a8ad021e8a767441e03a9418 to your computer and use it in GitHub Desktop.
カラム毎に欠損値補う
def fillna_col(df, col):
df[col] = df[col].where(df[col].notnull(), 0)
return df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment