Example 3: Ingest the feature values using process id to the repo "vfs_test" - 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

This example re-runs an existing feature process using its process_id.

Example setup

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

Create a feature store.

>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_test", data_domain='sales')
Repo vfs_test does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
>>> fs.setup()
True

Create a feature process using the existing process_id as the source

>>> fp_rerun = FeatureProcess(repo="vfs_test",
...                           data_domain='sales',
...                           object=fp.process_id,
...                           description="Rerun existing process")
>>> fp_rerun.run()
Process 'b2c3d4e5-2345-11f0-8765-f020ffe7fe09' started.
Process 'b2c3d4e5-2345-11f0-8765-f020ffe7fe09' completed.
True

Verify the feature process runs

>>> fs.list_feature_processes()
                                                 description data_domain       process_type  data_source    entity_id       feature_names feature_ids                     valid_start                       valid_end
process_id                                                                                                                                                                                                          
a5de0230-6b8e-11f0-ae70-f020ffe7fe09                               sales      feature group  sales_group  sales_group  Apr, Feb, Jan, Mar        None  2025-07-28 08:41:42.460000+00:  9999-12-31 23:59:59.999999+00:
76049397-6b8e-11f0-b77a-f020ffe7fe09                               sales  denormalized view      "sales"     accounts  Apr, Feb, Jan, Mar        None  2025-07-28 08:40:17.600000+00:  2025-07-28 08:44:52.220000+00:
76049397-6b8e-11f0-b77a-f020ffe7fe09  Rerun existing process       sales  denormalized view      "sales"     accounts  Apr, Feb, Jan, Mar        None  2025-07-28 08:44:52.220000+00:  9999-12-31 23:59:59.999999+00: