Teradata Package for Python Function Reference | 20.00 - partitions - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.
Teradata® Package for Python Function Reference - 20.00
- Deployment
- VantageCloud
- VantageCore
- Edition
- VMware
- Enterprise
- IntelliFlex
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.11
- Published
- August 2026
- ft:locale
- en-US
- ft:lastEdition
- 2026-08-13
- dita:id
- TeradataPython_FxRef_Enterprise_2000
- Product Category
- Teradata Vantage
- teradataml.dataframe.dataframe.DataFrame.partitions
- DESCRIPTION:
Gets partition information for a DataLake table.
PARAMETERS:
None
RETURNS:
teradataml DataFrame.
RAISES:
TeradataMLException.
EXAMPLES :
# Example 1: Get the partition information for datalake table.
>>> from teradataml.dataframe.dataframe import in_schema
>>> in_schema_tbl = in_schema(schema_name="datalake_db",
... table_name="datalake_table",
... datalake_name="datalake")
>>> datalake_df = DataFrame(in_schema_tbl)
>>> datalake_df.partitions
id name
0 1000 c2
1 1001 c3