to_pl_st_gdf_async#

async static FredHelpers.to_pl_st_gdf_async(shapefile, meta_data)[source]#

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

Parameters:
  • shapefile (gpd.GeoDataFrame) – FRED shapefile GeoDataFrame.

  • meta_data (Dict) – FRED response metadata dictionary.

Returns:

Converted Polars GeoDataFrame.

Return type:

polars_st.GeoDataFrame

Raises:
  • ImportError – If Polars with geospatial support is not installed.

  • ValueError – If no data section is found in the response.