pandas.DataFrame.to_iceberg
pandas 3.1.1 · Input and output · method
Write records to an Apache Iceberg table through an Iceberg catalog.
Call syntax
DataFrame.to_iceberg(…) Full signature
DataFrame.to_iceberg(
table_identifier,
catalog_name=None,
*,
catalog_properties=None,
location=None,
append=False,
snapshot_properties=None,
)Inspect the call
Run this code to inspect the callable and its parameters. Its data, backend, or environment is needed to execute the operation itself.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
table_identifier |
Required Positional or keyword |
str |
catalog_name |
Optional Positional or keyword Default None |
str |
catalog_properties |
Optional Keyword only Default None |
dict of {str: str} |
location |
Optional Keyword only Default None |
str |
append |
Optional Keyword only Default False |
bool Add records or keys to existing output instead of replacing it where supported. |
snapshot_properties |
Optional Keyword only Default None |
dict of {str: str} |
Returns
None
Example for a local Python session
import pandas as pd
# Use an Iceberg catalog and table configured for your Python environment.
orders = pd.DataFrame({"units": [2, 5]})
orders.to_iceberg("sales.orders", catalog_name="warehouse", append=True)