-
-
Save sgsg704/70f73beb7cce6fb657f874a45b05e2f4 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
# Get list of categorical variables | |
s = (data.dtypes == "object") | |
object_cols = list(s[s].index) | |
print("Categorical variables:") | |
print(object_cols) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment