-
-
Save amankharwal/c1075fa8716f1fc028ba4830babae6ac 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
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': | |
categorical.append(col) | |
# 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