temporian.to_csv #
to_csv(
evset: EventSet,
path: str,
sep: str = ",",
na_rep: Optional[str] = None,
columns: Optional[List[str]] = None,
)
Saves an EventSet
to a CSV file.
Example
>>> output_path = str(tmp_dir / "output_data.csv")
>>> evset = tp.event_set(timestamps=[1,], features={"f1": [0.1]})
>>> tp.to_csv(evset, output_path)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
evset |
EventSet
|
EventSet to save. |
required |
path |
str
|
Path to the file. |
required |
sep |
str
|
Separator to use. |
','
|
na_rep |
Optional[str]
|
Representation to use for missing values. |
None
|
columns |
Optional[List[str]]
|
Columns to save. If |
None
|