awswrangler.catalog.sanitize_table_name¶
- awswrangler.catalog.sanitize_table_name(table: str) str ¶
Convert the table 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:
table (
str
) – Table name.- Return type:
str
- Returns:
Normalized table name.
Examples
>>> import awswrangler as wr >>> wr.catalog.sanitize_table_name('MyNewTable') 'mynewtable'