Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created December 22, 2021 03:29
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/df804e8ff360ce19681371849d3eb410 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/df804e8ff360ce19681371849d3eb410 to your computer and use it in GitHub Desktop.
#Categorical imputation
data['column_name'].fillna(data['column_name'].value_counts().idxmax(), inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment