Skip to content

featurebyte.TableColumn.as_entity

as_entity(
entity_name: Union[str, NoneType]
)

Description

Tags an entity to a column that represents the entity in the table, providing further context and organization to facilitate feature engineering.

Parameters

  • entity_name: Union[str, NoneType]
    The name of the entity that is represented or referenced by the column. If None, removes prior association.

Examples

Set column "GroceryInvoiceGuid" of the target event table as entity "groceryinvoice"

>>> event_table = catalog.get_table("GROCERYINVOICE")
>>> event_table["GroceryInvoiceGuid"].as_entity("groceryinvoice")