From 303ab6263fe3433faf3dfea32beed21a289d4769 Mon Sep 17 00:00:00 2001 From: Sermet Pekin Date: Tue, 20 Aug 2024 00:12:25 +0300 Subject: [PATCH] readme --- README.md | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 723c7ed..a2ef1ad 100644 --- a/README.md +++ b/README.md @@ -87,22 +87,31 @@ template = """TP_GSYIH01_GY_CF df2 = get_series(template, debug=False, cache=False) ``` ```python -from evdspy import get_series, default_start_date_fnc, default_end_date_fnc -index1 = "TP.ODEMGZS.BDTTOPLAM", "TP.ODEMGZS.ABD" -index2 = """ - TP.ODEMGZS.BDTTOPLAM # - TP.ODEMGZS.ABD # - """ -cache = True -df = get_series(index1, - frequency="monthly", - start_date=default_start_date_fnc(), - end_date=default_end_date_fnc(), - aggregation=("avg",), - cache=cache, - debug=False) -print(df) + +from evdspy import get_series , get_series_exp +CPI = """ +TP.FG.J0 # Consumer Price Index +""" + +inf_exp_market_part = """ + +TP.ENFBEK.PKA12ENF # Annual inflation expectations of market participants (12-month ahead, %) + +""" +inf_exp_real_sector = """ + +TP.ENFBEK.IYA12ENF # Annual inflation expectations of real sector (12-month ahead, %) + +""" + + +for index in [CPI, inf_exp_market_part, inf_exp_real_sector]: + res = get_series_exp(index , cache = True , start_date = "01-01-2010" ) + print(res.data) + print(res.metadata) + ``` + ### Some more examples ```python from evdspy import get_series