mostlyright.core.formats.dataframe
mostlyright.core.formats.dataframe
Section titled “mostlyright.core.formats.dataframe”DataFrame format — identity passthrough.
Exists so the format-dispatch layer (catalog adapters, MCP wire layer)
can call dumps / loads uniformly across every supported format.
A caller asking for format="dataframe" gets the DataFrame back
unchanged — no serialization, no copy, no validation.
Lossless by definition.
Functions
Section titled “Functions”dumps(df) | Return the DataFrame unchanged. |
|---|---|
loads(df) | Return the DataFrame unchanged. |
mostlyright.core.formats.dataframe.dumps(df)
Section titled “mostlyright.core.formats.dataframe.dumps(df)”Return the DataFrame unchanged.
Provided for API symmetry with the other format modules. The caller receives the same object reference; callers that mutate must copy explicitly.
- Return type:
DataFrame - Parameters: df (DataFrame)
mostlyright.core.formats.dataframe.loads(df)
Section titled “mostlyright.core.formats.dataframe.loads(df)”Return the DataFrame unchanged.
Mirror of dumps for API symmetry. Accepts a DataFrame (not bytes
or string) because the “dataframe” format is the in-memory form.
- Return type:
DataFrame - Parameters: df (DataFrame)