Formatted Output
v0.4.0Consistent console, markdown, JSON, and ViewX exports for every StatsLibX result type.
Overview
Result objects share a common export surface: rich __repr__ for the console, to_dataframe(), to_markdown(), to_json(), and optional ViewX methods (to_html() / to_presentation()).
Supported result types
| Type | Console | Markdown / JSON | ViewX |
|---|---|---|---|
| DescriptiveSummary | Yes | Yes | Yes |
| TestResult | Yes (uses self.alpha) | Yes | Yes |
| PowerResult | Yes | Yes | Payload |
| RegressionResult | Rich ASCII | Yes | Yes (+ coefs) |
| BootstrappingResult | Yes | Yes | Yes (+ figure) |
| MonteCarloResult | Yes | Yes | Yes (+ figure) |
| JackknifeResult | Yes | Yes | Payload |
Examples
to_markdown
result.to_markdown() -> str
str
to_report_data
to_report_data(result, include_figures=False, data=None) -> dict
dict