gi.write.sanitize_table_name
gi.write.sanitize_table_name(sheet_name)
Replaces invalid characters and spaces in GI table names with underscores and truncates to 31 characters.
Makes table names consistent with SQL, GeoPackage and Excel naming conventions by replacing invalid characters and spaces with underscores.
Parameters
Name | Type | Description | Default |
---|---|---|---|
sheet_name | str | The original sheet name. | required |
Returns
Name | Type | Description |
---|---|---|
sanitized_name | A sanitized sheet name with invalid characters and spaces replaced. |