🧱 ExportableMixin Utility¶
ExportMixin
¶
Methods:
-
export– -
to_dataframe–Convert the response data collection to a Pandas DataFrame.
-
summary–Print and optionally save an analytics summary of the dataset.
🔁 Utility Functions¶
handle_dict¶
handle_dict
¶
handle_dict(obj)
Source code in src/pydoge_api/utils/exporter.py
118 119 120 121 122 | |
This ensures that even raw dict responses support .export().
DictExportable¶
DictExportable
¶
A dict subclass with .export() support
Methods:
-
summary–Print and optionally save an analytics summary of the dataset.
-
to_dataframe–Convert the response data collection to a Pandas DataFrame.
summary
¶
Print and optionally save an analytics summary of the dataset.
Parameters:
-
(verbose¶bool, default:False) –If True, print a head preview of the data.
-
(save_as¶str, default:None) –Path to save the summary text (e.g. "summary.md" or "report.txt").
Source code in src/pydoge_api/utils/exporter.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
to_dataframe
¶
to_dataframe() -> DataFrame
Convert the response data collection to a Pandas DataFrame.
Returns:
-
DataFrame–
Source code in src/pydoge_api/utils/exporter.py
42 43 44 45 46 47 48 49 50 | |
A subclass of dict that supports .export(), .to_dataframe(), .summary().
Used when output_pydantic=False.