TDGenSeries | Input Classes for UAF Functions | teradataml - TDGenSeries - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

Generate a series to a UAF function rather than using a pre-existing series instance. It contains all the information that would have been derivable from a TDSeries as well as the information required to generate the series.

The TDGenSeries can only be passed to a function that accepts a single series as input.

Generated series have a indexing mechanism which starts at integer 0 and increments by 1 for each additional generated entry.

Required Arguments:
  • instances: Specifies the columns and values for the generated series.
  • data_types: Specifies the data types of the identifying columns for the generated series.
  • start: Specifies the start value for the information about how the series payload, containing successive real magnitude values.
  • offset: Specifies the offset value for the information about how the series payload, containing successive real magnitude values.
  • num_entries: Specifies the number of entries for the information about how the series payload, containing successive real magnitude values.

Example 1: Create a TDGenSeries object

# Import TDGenSeries.
>>> from teradataml import TDGenSeries
# Import INTEGER type from teradatasqlalchemy.
>>> from teradatasqlalchemy.types import INTEGER
# Create a TDGenSeries object to be passed as input to UAF functions.
>>> series = TDGenSeries(instances = {"BuoyID": 3}, data_types = INTEGER(), start=0, offset=1, num_entries=5)