Skip to content

temporian.from_parquet #

from_parquet(
    path: str,
    timestamps: str = "timestamp",
    indexes: Optional[List[str]] = None,
    **kwargs
) -> EventSet

Reads an EventSet from a parquet file.

Example
>>> temp_file = str(tmp_dir / "temporal_data.parquet")
>>> og_eventset = tp.event_set(timestamps=[1,], features={"f1": [0.1]})
>>> tp.to_parquet(og_eventset, temp_file)
>>> evset = tp.from_parquet(temp_file)
>>> evset
indexes: []
features: [('f1', float64)]
events:
    (1 events):
        timestamps: [1.]
        'f1': [0.1]
...

Parameters:

Name Type Description Default
path str

Path to the file.

required
timestamps str

Name of the column to be used as timestamps for the EventSet.

'timestamp'
indexes Optional[List[str]]

Names of the columns to be used as indexes for the EventSet. If None, a flat EventSet will be created.

None

Returns:

Type Description
EventSet

EventSet read from file.