Teradata Python Package Function Reference - 16.20 - keys - Teradata Python Package

Teradata® Python Package Function Reference

prodname
Teradata Python Package
vrm_release
16.20
created_date
February 2020
category
Programming Reference
featnum
B700-4008-098K
teradataml.dataframe.dataframe.DataFrame.keys = keys(self)
RETURNS:
    a list containing the column names
 
EXAMPLES:
    >>> load_example_data("dataframe","sales")
    >>> df = DataFrame.from_table('sales')
    >>> df.keys()
    ['accounts', 'Feb', 'Jan', 'Mar', 'Apr', 'datetime']