keys() Method | Teradata Python Package - keys() Method - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.10
Published
May 2022
Language
English (United States)
Last Update
2022-08-18
dita:mapPath
rsu1641592952675.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage

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

The keys() method is identical to the columns Property.

Example

>>> df = DataFrame("sales")
>>> df.keys()
['accounts', 'Feb', 'Jan', 'Mar', 'Apr', 'datetime']