pydeflate.get_data.imf_data

Classes

IMF

Helper class that provides a standard way to create an ABC using

Module Contents

class pydeflate.get_data.imf_data.IMF

Bases: pydeflate.get_data.deflate_data.Data

Helper class that provides a standard way to create an ABC using inheritance.

_weo: bblocks.WorldEconomicOutlook = None

An object to download and return the latest IMF WEO data for several indicators

__post_init__()
update() None

Update the stored WEO data, using WEO package.

load_data(latest_y: int | None = None, latest_r: int | None = None) None

Loading WEO as a clean dataframe

Parameters:
  • latest_y – passed only optional to override the behaviour to get the latest

  • WEO. (release year for the)

  • latest_r – passed only optionally to override the behaviour to get the latest

  • value (released)

implied_exchange(direction: str = 'lcu_usd') pandas.DataFrame

Get the implied exchange rate used by the IMF :param direction: the direction of the exchange rate, either lcu_usd for :param local currency units per usd: :param or usd_lcu for the opposite.: