We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b010272 commit eb09179Copy full SHA for eb09179
awswrangler/catalog/_utils.py
@@ -208,7 +208,7 @@ def sanitize_dataframe_columns_names(
208
"""
209
df.columns = [sanitize_column_name(x) for x in df.columns]
210
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():
+ if len(set(df.columns)) != len(df.columns): # df.columns.duplicated().any():
212
if handle_duplicate_columns == "warn":
213
warnings.warn(
214
"Some columns names are duplicated, consider using `handle_duplicate_columns='[drop|rename]'`",
0 commit comments