Skip to content

Commit 77a36a3

Browse files
author
JPFrancoia
committed
Adding a note about collisions for sanitize_dataframe_columns_names.
1 parent 9c4a4d3 commit 77a36a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

awswrangler/catalog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ def sanitize_dataframe_columns_names(df: pd.DataFrame) -> pd.DataFrame:
679679
- Remove non alphanumeric characters
680680
- Convert CamelCase to snake_case
681681
682+
Note: after transformation, some column names might not be unique anymore.
683+
Example: the columns ["A", "a"] will be sanitized to ["a", "a"]
684+
682685
Parameters
683686
----------
684687
df : pandas.DataFrame

0 commit comments

Comments
 (0)