Created
January 20, 2024 14:14
-
-
Save wibowotangara/60f2451c33917e9bebdb48123a04216c 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
unique_cols = [col for col in df.columns if df[col].nunique() == len(df)] | |
df = df.drop(columns=unique_cols) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment