Skip to content

Commit 950d5e3

Browse files
econdb - expand documentation
1 parent 5fdaedd commit 950d5e3

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

docs/source/remote_data.rst

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Currently the following sources are supported:
3030
- :ref:`Tiingo<remote_data.tiingo>`
3131
- :ref:`IEX<remote_data.iex>`
3232
- :ref:`Alpha Vantage<remote_data.alphavantage>`
33+
- :ref:`Econdb<remote_data.econdb>`
3334
- :ref:`Enigma<remote_data.enigma>`
3435
- :ref:`Quandl<remote_data.quandl>`
3536
- :ref:`St.Louis FED (FRED)<remote_data.fred>`
@@ -298,14 +299,36 @@ Econdb
298299
official statistical agencies. Free API allows access to the complete
299300
Econdb database of time series aggregated into datasets.
300301

301-
.. ipython:: python
302+
Reading data for a single series such as the `RGDP <https://www.econdb.com/series/RGDPUS/>`__
303+
for United States, is as simple as taking the ticker segment from the URL path
304+
(``RGDPUS`` in https://www.econdb.com/series/RGDPUS/) and passing it in like:
305+
306+
.. code-block:: ipython
302307
303308
import os
304309
import pandas_datareader.data as web
305310
306311
f = web.DataReader('ticker=RGDPUS', 'econdb')
307312
f.head()
308313
314+
The code snippet for exporting the whole dataset, or its filtered down subset,
315+
can be generated by using the Export -> Pandas Python3 functionality
316+
on any of the numerous datasets available,
317+
such as the Eurostat's `GDP and main components <https://www.econdb.com/dataset/NAMQ_10_GDP>`__
318+
319+
.. code-block:: ipython
320+
321+
import os
322+
import pandas_datareader.data as web
323+
324+
df = web.DataReader('dataset=NAMQ_10_GDP&v=Geopolitical entity (reporting)&h=TIME&from=2018-05-01&to=2021-01-01&GEO=[AL,AT,BE,BA,BG,HR,CY,CZ,DK,EE,EA19,FI,FR,DE,EL,HU,IS,IE,IT,XK,LV,LT,LU,MT,ME,NL,MK,NO,PL,PT,RO,RS,SK,SI,ES,SE,CH,TR,UK]&NA_ITEM=[B1GQ]&S_ADJ=[SCA]&UNIT=[CLV10_MNAC]', 'econdb')
325+
df.columns
326+
327+
Datasets can be located through Econdb's `search <https://www.econdb.com/search>`__
328+
engine, or discovered by exploring the `tree <https://www.econdb.com/tree/>`__
329+
of available statistical sources.
330+
331+
309332
.. _remote_data.econdb:
310333

311334
Enigma

0 commit comments

Comments
 (0)