Skip to content

Commit

Permalink
examples docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin committed Aug 19, 2024
1 parent cf6bcbe commit 80525a0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,34 @@ cache True for eficient requests. Only checks request result for the current day
"""
result = get_series_exp(index, cache = True , start_date="01-01-2017", end_date="31-12-2017" )
print(result.data)
print(result.data)
.. code-block:: python
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)

0 comments on commit 80525a0

Please sign in to comment.