Skip to content

featurebyte.View.create_batch_request_table

create_batch_request_table(
name: str,
columns: Optional[list[str]]=None,
columns_rename_mapping: Optional[dict[str, str]]=None
) -> BatchRequestTable

Description

Creates an BatchRequestTable from the View. When you specify the columns and the columns_rename_mapping parameters, make sure that the table has a column containing entity values with an accepted serving name.

Parameters

  • name: str
    Name of the BatchRequestTable.

  • columns: Optional[list[str]]
    Include only these columns in the view when creating the batch request table. If None, all columns are included.

  • columns_rename_mapping: Optional[dict[str, str]]
    Rename columns in the view using this mapping from old column names to new column names when creating the batch request table. If None, no columns are renamed.

Returns

  • BatchRequestTable
    BatchRequestTable object.

Examples

>>> batch_request_table = view.create_batch_request_table(
...   name="<batch_request_table_name>",
...   columns=[<entity_column_name>],
...   columns_rename_mapping={
...     <entity_column_name>: <entity_serving_name>,
...   }
... )