-
-
Save AI-MOO/b267d4115bd1dcca5b217578bdb9048c 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
# التحقق من القيم الممثلة لكل ميزة وتحديد نوع الميزة [فئوية ، رقمية متصلة] | |
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) | |
print('==============================') | |
print(f"Categorical Features : {categorical_val}") | |
print(f"Continous Features : {continous_val}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment