Skip to content

Instantly share code, notes, and snippets.

@sgsg704
Created November 26, 2021 07:14
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 sgsg704/2563fe80f4ee7e6121d3b80dc9e88b41 to your computer and use it in GitHub Desktop.
Save sgsg704/2563fe80f4ee7e6121d3b80dc9e88b41 to your computer and use it in GitHub Desktop.
for col in trainX.columns:
if trainX[col].dtype=='object':
trainX.drop([col],axis=1,inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment