awswrangler.catalog.delete_column¶
- awswrangler.catalog.delete_column(database: str, table: str, column_name: str, boto3_session: Session | None = None, catalog_id: str | None = None) None¶
Delete a column in a AWS Glue Catalog table.
- Parameters:
database (
str) – Database name.table (
str) – Table name.column_name (
str) – Column nameboto3_session (
Session|None) – The default boto3 session will be used if boto3_session receiveNone.catalog_id (
str|None) – The ID of the Data Catalog from which to retrieve Databases. IfNoneis provided, the AWS account ID is used by default.
- Return type:
None
Examples
>>> import awswrangler as wr >>> wr.catalog.delete_column( ... database='my_db', ... table='my_table', ... column_name='my_col', ... )