FredHelpers#
- class fedfred.helpers.FredHelpers[source]#
Bases:
objectA class that provides helper methods for the FRED API.
Methods#
Helper method to validate date-string formatted parameters. |
|
Helper method to validate date-string formatted parameter asynchronously. |
|
Helper method to convert a datetime object to a string in YYYY-MM-DD format. |
|
Helper method to convert a datetime object to a string in YYYY-MM-DD format asynchronously. |
|
Helper method to convert a datetime object to a string in HH:MM format. |
|
Helper method to convert a datetime object to a string in HH:MM format asynchronously. |
|
Helper method to extract the region type from a GeoFred response dict. |
|
Helper method to extract the region type from a GeoFred response dictionary asynchronously. |
|
Helper method to validate parameters prior to making a get request. |
|
Helper method to validate parameters prior to making a get request. |
|
Helper method to validate hh:mm formatted parameters. |
|
Helper method to validate hh:mm formatted parameters asynchronously. |
|
Helper method to convert a list of strings to a semicolon-separated string. |
|
Helper method to convert a list of strings to a semicolon-separated string asynchronously. |
|
Helper method to validate list-string formatted parameters. |
|
Helper method to validate list-string formatted parameters asynchronously. |
|
Helper method to validate parameters prior to making a get request. |
|
Helper method to validate parameters prior to making a get request asynchronously. |
|
Convert fedfred native frequency strings to pandas compatible ones. |
|
Asynchronously convert fedfred native frequency strings to pandas compatible ones. |
|
Helper method to convert a FRED observation dictionary to a Dask DataFrame. |
|
Helper method to convert a FRED observation dictionary to a Dask DataFrame asynchronously. |
|
Helper method to convert a FRED observation dictionary to a Dask GeoPandas GeoDataFrame. |
|
Helper method to convert a FRED observation dictionary to a Dask GeoPandas GeoDataFrame asynchronously. |
|
Helper method to convert a fred observation dictionary to a GeoPandas GeoDataFrame. |
|
Helper method to convert a FRED observation dictionary to a GeoPandas GeoDataFrame asynchronously. |
|
Helper method to convert a fred observation dictionary to a Pandas DataFrame. |
|
Helper method to convert a FRED observation dictionary to a Pandas DataFrame asynchronously. |
|
Accepts a Series or a DataFrame with 'date' and 'value' columns and returns a float Series with DatetimeIndex and the given name. |
|
Asynchronously accepts a Series or a DataFrame with 'date' and 'value' columns (fedfred style) and returns a float Series with DatetimeIndex and the given name. |
|
Helper method to convert a fred observation dictionary to a Polars DataFrame. |
|
Helper method to convert a FRED observation dictionary to a Polars DataFrame asynchronously. |
|
Helper method to convert a FRED observation dictionary to a Polars GeoDataFrame. |
|
Helper method to convert a FRED observation dictionary to a Polars GeoDataFrame asynchronously. |
|
Helper method to convert a vintage_dates parameter to a string. |
|
Helper method to convert a vintage_dates parameter to a string asynchronously. |
|
Helper method to validate vintage_dates parameters. |
|
Helper method to validate vintage_dates parameters asynchronously. |