🧱 ExportableMixin Utility¶
ExportMixin
¶
| METHOD | DESCRIPTION |
|---|---|
export |
|
to_dataframe |
Convert the response data collection to a Pandas DataFrame. |
summary |
Build, optionally print, and optionally save an analytics summary of the dataset. |
export(filename: str = 'doge_data', format: str = 'csv') -> Path
¶
to_dataframe(parse_dates: bool = True) -> pd.DataFrame
¶
Convert the response data collection to a Pandas DataFrame.
| PARAMETER | DESCRIPTION |
|---|---|
|
If True, coerce known date columns (
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
DataFrame
|
|
summary(verbose: bool = False, save_as: Optional[str] = None, to_stdout: bool = True) -> str
¶
Build, optionally print, and optionally save an analytics summary of the dataset.
| PARAMETER | DESCRIPTION |
|---|---|
|
If True, include a head preview of the data.
TYPE:
|
|
Path to save the summary text (e.g. "summary.md" or "report.txt").
TYPE:
|
|
If True, print the summary to stdout. Set False to capture it silently via the return value.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
str
|
The rendered summary text. |
🔁 Utility Functions¶
handle_dict¶
handle_dict(obj)
¶
This ensures that even raw dict responses support .export().
DictExportable¶
DictExportable
¶
A subclass of dict that supports .export(), .to_dataframe(), .summary().
Used when output_pydantic=False.