normalise_vault_poll_frequency

Documentation for eth_defi.research.vault_metrics.normalise_vault_poll_frequency function.

normalise_vault_poll_frequency(value)

Normalise a raw vault scan cycle value.

The cleaned price parquet may carry missing values as None, NaN or pd.NA depending on how the column was materialised. This helper converts valid scan cycle values to stripped strings and hides missing values from JSON-facing metric records.

Parameters

value (object) – Raw vault_poll_frequency cell value from a price row.

Returns

Normalised scan cycle string, or None when missing.

Return type

Optional[str]