keys() Method

Teradata® Python Package User Guide

brand
Teradata Vantage
prodname
Teradata Python Package
vrm_release
16.20
category
User Guide
featnum
B700-4006-098K

Use the keys() metod to get a list of column names.

>>> df = DataFrame("sales")
>>> df.keys()
['accounts', 'Feb', 'Jan', 'Mar', 'Apr', 'datetime']
The keys() method is identical to the columns property.