TDGenSeries | Input Classes for UAF Functions | teradataml - TDGenSeries - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

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)