Skip to content

featurebyte.ObservationTable.upload

upload(
file_path: Union[str, Path],
name: str,
purpose: Union[Purpose, NoneType]=None,
primary_entities: Union[List[str], NoneType]=None
) -> ObservationTable

Description

Upload a file to create an observation table. This file can either be a CSV or Parquet file.

Parameters

  • file_path: Union[str, Path]
    Path to file to upload. The file path should end in the appropriate .csv or .parquet file extension.

  • name: str
    Name of the observation table to create.

  • purpose: Union[Purpose, NoneType]
    Purpose of the observation table.

  • primary_entities: Union[List[str], NoneType]
    List of primary entities for the observation table.

Returns

  • ObservationTable

Examples

>>> observation_table = ObservationTable.upload(
...     file_path="path/to/csv/file.csv",
...     name="observation_table_name",
...     purpose=fb.Purpose.PREVIEW,
...     primary_entities=["entity_name_1"],
... )