Teradata Package for Python Function Reference on VantageCloud Lake - 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 on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Package for Python
Release Number
20.00.00.11
Publication Date
August 2026
Content Type
Programming Reference
Publication ID
B700-4500-200K
ft:locale
en-US
ft:lastEdition
2026-08-13
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_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