to_pl_df#
- static FredHelpers.to_pl_df(data)[source]#
Helper method to convert a fred observation dictionary to a Polars DataFrame.
- Parameters:
- Returns:
Converted Polars DataFrame.
- Return type:
polars.DataFrame
- Raises:
ImportError – If Polars is not installed.
ValueError – If ‘observations’ key is not in the data.