Skip to content

featurebyte.View.create_batch_request_table

create_batch_request_table(
name: str,
columns: Optional[list]=None,
columns_rename_mapping: Optional[dict]=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]
    Include only these columns in the view when creating the batch request table. If None, all columns are included.

  • columns_rename_mapping: Optional[dict]
    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>,
...   }
... )