awswrangler.catalog.sanitize_column_name¶
- awswrangler.catalog.sanitize_column_name(column: str) str ¶
Convert the column name to be compatible with Amazon Athena and the AWS Glue Catalog.
https://docs.aws.amazon.com/athena/latest/ug/tables-databases-columns-names.html
Possible transformations: - Strip accents - Remove non alphanumeric characters
- Parameters:
column (
str
) – Column name.- Return type:
str
- Returns:
Normalized column name.
Examples
>>> import awswrangler as wr >>> wr.catalog.sanitize_column_name('MyNewColumn') 'mynewcolumn'