You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/remote_data.rst
+8-325
Original file line number
Diff line number
Diff line change
@@ -2,34 +2,21 @@
2
2
3
3
.. currentmodule:: pandas
4
4
5
-
.. ipython:: python
6
-
:suppress:
7
-
8
-
import os
9
-
import csv
10
-
import pandas as pd
11
-
12
-
import numpy as np
13
-
np.random.seed(123456)
14
-
randn = np.random.randn
15
-
np.set_printoptions(precision=4, suppress=True)
16
-
17
-
import matplotlib.pyplot as plt
18
-
plt.close('all')
19
-
20
-
from pandas import*
21
-
options.display.max_rows=15
22
-
import pandas.util.testing as tm
23
-
24
5
******************
25
6
Remote Data Access
26
7
******************
27
8
28
9
.. _remote_data.pandas_datareader:
29
10
30
-
.. warning::
11
+
DataReader
12
+
----------
31
13
32
-
In pandas 0.17.0, the sub-package ``pandas.io.data`` will be removed in favor of a separately installable `pandas-datareader package <https://github.com/pydata/pandas-datareader>`_. This will allow the data modules to be independently updated to your pandas installation. The API for ``pandas-datareader v0.1.1`` is the same as in ``pandas v0.16.1``. (:issue:`8961`)
14
+
The sub-package ``pandas.io.data`` is removed in favor of a separately
15
+
installable `pandas-datareader package
16
+
<https://github.com/pydata/pandas-datareader>`_. This will allow the data
17
+
modules to be independently updated to your pandas installation. The API for
18
+
``pandas-datareader v0.1.1`` is the same as in ``pandas v0.16.1``.
19
+
(:issue:`8961`)
33
20
34
21
You should replace the imports of the following:
35
22
@@ -43,310 +30,6 @@ Remote Data Access
43
30
44
31
from pandas_datareader import data, wb
45
32
46
-
.. _remote_data.data_reader:
47
-
48
-
Functions from :mod:`pandas.io.data` and :mod:`pandas.io.ga` extract data from various Internet sources into a DataFrame. Currently the following sources are supported:
49
-
50
-
- :ref:`Yahoo! Finance<remote_data.yahoo>`
51
-
- :ref:`Google Finance<remote_data.google>`
52
-
- :ref:`St.Louis FED (FRED)<remote_data.fred>`
53
-
- :ref:`Kenneth French's data library<remote_data.ff>`
54
-
- :ref:`World Bank<remote_data.wb>`
55
-
- :ref:`Google Analytics<remote_data.ga>`
56
-
57
-
It should be noted, that various sources support different kinds of data, so not all sources implement the same methods and the data elements returned might also differ.
58
-
59
-
.. _remote_data.yahoo:
60
-
61
-
Yahoo! Finance
62
-
--------------
63
-
64
-
.. ipython:: python
65
-
:okwarning:
66
-
67
-
import pandas.io.data as web
68
-
import datetime
69
-
start = datetime.datetime(2010, 1, 1)
70
-
end = datetime.datetime(2013, 1, 27)
71
-
f = web.DataReader("F", 'yahoo', start, end)
72
-
f.ix['2010-01-04']
73
-
74
-
.. _remote_data.yahoo_options:
75
-
76
-
Yahoo! Finance Options
77
-
----------------------
78
-
***Experimental***
79
-
80
-
The ``Options`` class allows the download of options data from Yahoo! Finance.
81
-
82
-
The ``get_all_data`` method downloads and caches option data for all expiry months
83
-
and provides a formatted ``DataFrame`` with a hierarchical index, so it is easy to get
0 commit comments