to_pl_df_async#

async static FredHelpers.to_pl_df_async(data)[source]#

Helper method to convert a FRED observation dictionary to a Polars DataFrame asynchronously.

Parameters:

data (Dict[str, list]) – FRED observation dictionary.

Returns:

Converted Polars DataFrame.

Return type:

pandas.DataFrame

Raises:
  • ImportError – If Polars is not installed.

  • ValueError – If ‘observations’ key is not in the data.