Teradata Package for Python Function Reference - 17.00 - dtypes - Teradata Package for Python

Teradata® Package for Python Function Reference

Product
Teradata Package for Python
Release Number
17.00
Release Date
April 2021
Content Type
Programming Reference
Publication ID
B700-4008-070K
Language
English (United States)
teradataml.dataframe.dataframe.DataFrame.dtypes
Returns a MetaData containing the column names and types.
 
PARAMETERS:
 
RETURNS:
    MetaData containing the column names and Python types
 
RAISES:
 
EXAMPLES:
    >>> load_example_data("dataframe","sales")
    >>> df = DataFrame.from_table('sales')
    >>> print(df.dtypes)
    accounts              str
    Feb                 float
    Jan                   int
    Mar                   int
    Apr                   int
    datetime    datetime.date
    >>>