to_pl_st_gdf#
- static FredHelpers.to_pl_st_gdf(shapefile, meta_data)[source]#
Helper method to convert a FRED observation dictionary to a Polars GeoDataFrame.
- 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.