Created
January 20, 2024 14:38
-
-
Save wibowotangara/7d18d2d5b62912a1da1434f015797aef 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
for col in df.select_dtypes(include='object').columns.tolist(): | |
value_counts_percentage = df[col].value_counts(normalize=True) * 100 | |
if any(value_counts_percentage > 80): | |
print(value_counts_percentage) | |
print('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment