Teradata Package for Python Function Reference on VantageCloud Lake | 17.20 - size - 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
17.20
Publication Date
November 2022
Content Type
Programming Reference
Publication ID
B700-4500-112K
ft:locale
en-US
ft:lastEdition
2024-02-21
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_1720
Product Category
Teradata Vantage
teradataml.dataframe.dataframe.DataFrame.size
Returns a value representing the number of elements in the DataFrame.
 
PARAMETERS:
    None
 
RETURNS:
    Value representing the number of elements in the DataFrame.
 
EXAMPLES:
    >>> load_example_data("dataframe","sales")
    >>> df = DataFrame.from_table('sales')
    >>> df
                  Feb   Jan   Mar   Apr  datetime
    accounts
    Orange Inc  210.0  None  None   250  04/01/2017
    Yellow Inc   90.0  None  None  None  04/01/2017
    Red Inc     200.0   150   140  None  04/01/2017
    Blue Inc     90.0    50    95   101  04/01/2017
    Jones LLC   200.0   150   140   180  04/01/2017
    Alpha Co    210.0   200   215   250  04/01/2017
    >>> df.size
    36
 
RAISES:
    None