Created
June 15, 2017 12:21
-
-
Save lapis-zero09/a6827702a8ad021e8a767441e03a9418 to your computer and use it in GitHub Desktop.
カラム毎に欠損値補う
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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