filters | FeatureProcess Property | Teradata Package for Python - filters - Teradata Package for Python

Teradata® Package for Python User Guide

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

Use the filters property to return the filters used while running the feature process.

Example setup

>>> from teradataml import DataFrame, load_example_data

Create a DataFrame from the sales data.

>>> load_example_data('dataframe', ['sales'])
>>> df = DataFrame("sales")

Create a FeatureProcess with filters on existing repository 'vfs_v1'.

>>> fp = FeatureProcess(repo="test",
...                     data_domain='test_domain',
...                     object=df,
...                     entity='accounts',
...                     features=['Mar', 'Apr']
...                     )
>>> fp.run(filters=[df.accounts=='Alpha Co', "accounts='Jones LLC'"])
Process '108de34f-6b83-11f0-a819-f020ffe7fe09' started.
Ingesting the features for filter 'accounts = 'Alpha Co'' to catalog.
Ingesting the features for filter 'accounts='Jones LLC'' to catalog.
Process '108de34f-6b83-11f0-a819-f020ffe7fe09' completed.
True

Example

>>> fp.filters
[<teradataml.dataframe.sql._SQLColumnExpression at 0x20ea1b24fa0>, "accounts='Jones LLC'"]