DatasetResult · Python
Read and export a single extracted field map.
In this guide
Purpose and lifecycle
Returned by Dataset.build. Constructing it manually requires the correct native result handle.
Export methods create or replace files. A small-result export is not a resumable dataset shard or checkpoint. Python df() needs pandas installed separately.
Definition and availability
Source snapshot: 1.0.0-alpha.3. Package export. Declared in source; this is not a runtime test result.
Signatures and source locations are generated from the SDK wrappers. Clean snapshots link to the recorded commit. Modified snapshots link to main, which may differ; file hashes identify the local inputs.
class DatasetResultMembers
| Member | Kind | Return / value type | Source status |
|---|---|---|---|
| __init__ | method | Not annotated; see behavior notes | Present in source |
| to_json | method | Not annotated; see behavior notes | Present in source |
| to_csv | method | Not annotated; see behavior notes | Present in source |
| to_parquet | method | Not annotated; see behavior notes | Present in source |
| to_dict | method | dict | Present in source |
| df | method | Not annotated; see behavior notes | Present in source |
| __getitem__ | method | str | Present in source |
| __repr__ | method | str | Present in source |
__init__()
Wrap a native DatasetResult handle returned by the engine. A plain Python dictionary is not a compatible handle.
Returns / value: Not annotated; see behavior notes.
def __init__(self, core_result: _CoreDatasetResult)| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| core_result | _CoreDatasetResult | Required | Native result handle produced by the engine. |
to_json()
Serialize the field map to one JSON object file.
Returns / value: Not annotated; see behavior notes.
def to_json(self, path: str)| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| path | str | Required | Filesystem path relative to the process working directory unless absolute. |
to_csv()
Write one header row and one data row.
Returns / value: Not annotated; see behavior notes.
def to_csv(self, path: str)| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| path | str | Required | Filesystem path relative to the process working directory unless absolute. |
to_parquet()
Write the fields as a one-row Parquet dataset.
Returns / value: Not annotated; see behavior notes.
def to_parquet(self, path: str)| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| path | str | Required | Filesystem path relative to the process working directory unless absolute. |
to_dict()
Return a copy of the extracted string-valued fields.
Returns / value: dict.
def to_dict(self) -> dictdf()
Return a one-row pandas DataFrame; requires pandas.
Returns / value: Not annotated; see behavior notes.
def df(self)__getitem__()
Look up a field by key; the native result can return None for an absent key.
Returns / value: str.
def __getitem__(self, key: str) -> str| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| key | str | Required | Field-map key or extraction field name. |
__repr__()
Return a short debugging representation of the wrapper. This is not a data export or a stable serialization format.
Returns / value: str.
def __repr__(self) -> strErrors and operational limits
Filesystem and serialization failures propagate. Node export methods reject with ExportError. Python can also expose OSError directly.
Source availability, package publication and runtime validation are separate facts. These pages describe the source snapshot, not a claim that all platforms or every API path have passed production acceptance.