abaquant.marketdata.financials.normalizer¶
Import path: abaquant.marketdata.financials.normalizer
Domain: Provider-neutral market-data facades, normalized records, caching, and analytics.
Purpose¶
Provider-statement table normalization and JSON-safe serialization.
When to use it¶
This module participates in the financial-statement pipeline: provider response, normalization, cache/repository coordination, canonical line-item resolution, and analytical input construction.
Public objects¶
function:
normalize_statement_frame— Normalize statement axes and numeric values without changing line labels.function:
json_value— Convert pandas and NumPy scalars into JSON-safe values.function:
frame_to_payload— Serialize a normalized statement frame to a portable JSON payload.function:
frame_from_payload— Deserialize one normalized statement frame from a JSON payload.
Detailed reference¶
Provider-statement table normalization and JSON-safe serialization.
- abaquant.marketdata.financials.normalizer.normalize_statement_frame(frame)¶
Normalize statement axes and numeric values without changing line labels.
- Parameters:
frame (DataFrame | None)
- Return type:
DataFrame
- abaquant.marketdata.financials.normalizer.json_value(value)¶
Convert pandas and NumPy scalars into JSON-safe values.
- Parameters:
value (object)
- Return type:
object
- abaquant.marketdata.financials.normalizer.frame_to_payload(frame)¶
Serialize a normalized statement frame to a portable JSON payload.
- Parameters:
frame (DataFrame)
- Return type:
dict[str, object]
- abaquant.marketdata.financials.normalizer.frame_from_payload(payload)¶
Deserialize one normalized statement frame from a JSON payload.
- Parameters:
payload (dict[str, object])
- Return type:
DataFrame