Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
attrition = attrition.drop(['Attrition_numerical'], axis=1)
# Empty list to store columns with categorical data
categorical = []
for col, value in attrition.iteritems():
if value.dtype == 'object':
# Store the numerical columns in a list numerical
numerical = attrition.columns.difference(categorical)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment