Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/heart disease.py Secret

Created Nov 10, 2020
Embed
What would you like to do?
categorical_val = []
continous_val = []
for column in df.columns:
print('==============================')
print(f"{column} : {df[column].unique()}")
if len(df[column].unique()) <= 10:
categorical_val.append(column)
else:
continous_val.append(column)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment