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

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for Python
Release Number
20.00
Published
December 2024
ft:locale
en-US
ft:lastEdition
2025-01-23
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
lifecycle
latest
Product Category
Teradata Vantage

The filter method subsets rows based on the index values of a DataFrame or columns of a DataFrame according to the labels in the specified index.

The filter is applied to the columns of the DataFrame when axis equals 'columns' (or 1). Otherwise, the filter is applied to the values of the DataFrame index when axis equals 'rows' (or 0).

There are three ways to filter using the filter method: item based, substring based and using regular expression. These ways are mutually exclusive in the sense that you must only use one of the following parameters: items, like, or regex.