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 the transformation against inputs.
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 eitherpandas.DataFrameorpyspark.sql.DataFrameobjects. For on-demand transformations, these arepandas.Dataframeobjects.context (
Optional[BaseMaterializationContext]) – An optional materialization context object.
-
summary()¶ Displays a human readable summary of this Transformation.
Attributes
created_atReturns the creation date of this Tecton Object.
defined_inReturns filename where this Tecton Object has been declared.
descriptionThe description of this Tecton Object, set by user.
familyDeprecated.
nameThe name of this Tecton Object.
ownerThe owner of this Tecton Object (typically the email of the primary maintainer.)
tagsTags associated with this Tecton Object (key-value pairs of arbitrary metadata set by user.)
transformerReturns the raw transformation function encapsulated by this Transformation.
workspaceReturns the workspace this Tecton Object was created in.
-