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

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.00
Release Date
November 2021
Content Type
User Guide
Publication ID
B700-4006-070K
Language
English (United States)

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']