.register_table(name, variant, table="")
. This method enables you to register transformations based on the primary data set or to register features and labels derived from it.
.register_file(name, variant="", path="")
.
Currently, Featureform offers support for CSVs and Parquet files. If your specific use case requires a different file format, please don’t hesitate to raise an issue on our Github repo.
sql_transformation
method provided by an offline store provider. Decorate a Python function that returns a formatted SQL string. By default, the function name is used as the data set’s name, and a variant is automatically generated. The sql_transformation
method contains a kwargs named inputs
, which is a list of either (name, variant)
tuples or Featureform data set objects. The function receives the Dataframe representation of these inputs as args. Both the name and variant can be overridden using kwargs of the same names in sql_transformation
. Additionally, the function’s docstring serves as the data set’s description.
Example:
df_transformation
method provided by an offline store provider to decorate a Python function that returns a Dataframe. The df_transformation
method requires a kwargs named inputs
, which is a list of either (name, variant)
tuples or Featureform data set objects. The function receives the Dataframe representation of these inputs as args. Similar to SQL transformations, the default name and variant are generated from the function’s name, but these can be customized using kwargs within df_transformation
. The function’s docstring serves as the data set’s description.
Example: