Feature Transformation
Feature Transformation Engines
API
feature_transformation
def remove_extra_spaces(df: DataFrame) -> DataFrame:
df['name'] = df['name'].str.replace('\s+', ' ')
return df
spark_transformation = SparkTransformation(
mode=TransformationMode.SPARK,
udf=remove_extra_spaces,
udf_string="remove extra spaces",
)
feature_view = FeatureView(
feature_transformation=spark_transformation,
...
)Aggregation
Filter
Join
Last updated
Was this helpful?