Skip to content

Commit f07d1a6

Browse files
authored
log the names of dupe columns, not boolean array
1 parent e7c8a2c commit f07d1a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,5 +1000,5 @@ def drop_duplicated_columns(dataframe: pd.DataFrame, inplace: bool = True) -> pd
10001000
if inplace is False:
10011001
dataframe = dataframe.copy(deep=True)
10021002
duplicated_cols = dataframe.columns.duplicated()
1003-
logger.warning(f"Dropping repeated columns: {duplicated_cols}")
1003+
logger.warning(f"Dropping repeated columns: {list(dataframe.columns[duplicated_cols])}")
10041004
return dataframe.loc[:, ~duplicated_cols]

0 commit comments

Comments
 (0)