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/io.rst
-181Lines changed: 0 additions & 181 deletions
Original file line number
Diff line number
Diff line change
@@ -2523,184 +2523,3 @@ Alternatively, the function :func:`~pandas.io.stata.read_stata` can be used
2523
2523
2524
2524
import os
2525
2525
os.remove('stata.dta')
2526
-
2527
-
Data Reader
2528
-
-----------
2529
-
2530
-
.. _io.data_reader:
2531
-
2532
-
Functions from :mod:`pandas.io.data` extract data from various Internet
2533
-
sources into a DataFrame. Currently the following sources are supported:
2534
-
2535
-
- Yahoo! Finance
2536
-
- Google Finance
2537
-
- St. Louis FED (FRED)
2538
-
- Kenneth French's data library
2539
-
2540
-
It should be noted, that various sources support different kinds of data, so notall sources implement the same methods and the data elements returned might also differ.
2541
-
2542
-
Yahoo! Finance
2543
-
~~~~~~~~~~~~~~
2544
-
2545
-
.. ipython:: python
2546
-
2547
-
import pandas.io.data as web
2548
-
start= datetime.datetime(2010, 1, 1)
2549
-
end= datetime.datetime(2013, 01, 27)
2550
-
f=web.DataReader("F", 'yahoo', start, end)
2551
-
f.ix['2010-01-04']
2552
-
2553
-
Google Finance
2554
-
~~~~~~~~~~~~~~
2555
-
2556
-
.. ipython:: python
2557
-
2558
-
import pandas.io.data as web
2559
-
start= datetime.datetime(2010, 1, 1)
2560
-
end= datetime.datetime(2013, 01, 27)
2561
-
f=web.DataReader("F", 'google', start, end)
2562
-
f.ix['2010-01-04']
2563
-
2564
-
FRED
2565
-
~~~~
2566
-
2567
-
.. ipython:: python
2568
-
2569
-
import pandas.io.data as web
2570
-
start= datetime.datetime(2010, 1, 1)
2571
-
end= datetime.datetime(2013, 01, 27)
2572
-
gdp=web.DataReader("GDP", "fred", start, end)
2573
-
gdp.ix['2013-01-01']
2574
-
2575
-
2576
-
Fama/French
2577
-
~~~~~~~~~~~
2578
-
2579
-
Tthe dataset names are listed at `Fama/French Data Library
0 commit comments