tecton.interactive.Transformation

class tecton.interactive.Transformation

Transformation Class.

A Transformation is a Tecton Object that contains logic for creating a feature.

To get a Transformation instance, call tecton.get_transformation().

Methods

run

Run the transformation against inputs.

summary

Displays a human readable summary of this Transformation.

run(*inputs, context=None)

Run the transformation against inputs.

Parameters
  • inputs (Union[DataFrame, Series, DataFrame, str, int, float, bool]) – positional arguments to the transformation function. For PySpark and SQL transformations, these are either pandas.DataFrame or pyspark.sql.DataFrame objects. For on-demand transformations, these are pandas.Dataframe objects.

  • context (Optional[BaseMaterializationContext]) – An optional materialization context object.

summary()

Displays a human readable summary of this Transformation.

Attributes

created_at

Returns the creation date of this Tecton Object.

defined_in

Returns filename where this Tecton Object has been declared.

description

The description of this Tecton Object, set by user.

family

Deprecated.

name

The name of this Tecton Object.

owner

The owner of this Tecton Object (typically the email of the primary maintainer.)

tags

Tags associated with this Tecton Object (key-value pairs of arbitrary metadata set by user.)

transformer

Returns the raw transformation function encapsulated by this Transformation.

workspace

Returns the workspace this Tecton Object was created in.