columns Property | Teradata Python Package - 17.00 - columns Property - 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 columns property to get a list of column names.

The columns property is identical to the keys() Method.

Example

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