Skip to content

Commit eb09179

Browse files
committed
Changed to len(set(.)) to get around mypy errors.
1 parent b010272 commit eb09179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/catalog/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def sanitize_dataframe_columns_names(
208208
"""
209209
df.columns = [sanitize_column_name(x) for x in df.columns]
210210
df.index.names = [None if x is None else sanitize_column_name(x) for x in df.index.names]
211-
if df.columns.duplicated().any():
211+
if len(set(df.columns)) != len(df.columns): # df.columns.duplicated().any():
212212
if handle_duplicate_columns == "warn":
213213
warnings.warn(
214214
"Some columns names are duplicated, consider using `handle_duplicate_columns='[drop|rename]'`",

0 commit comments

Comments
 (0)