File tree Expand file tree Collapse file tree 2 files changed +64
-6
lines changed Expand file tree Collapse file tree 2 files changed +64
-6
lines changed Original file line number Diff line number Diff line change 1212#
1313# All configuration values have a default; values that are commented out
1414# serve to show the default.
15+ import datetime as dt
16+
1517import pandas_datareader as pdr
1618
1719# Add any Sphinx extension module names here, as strings. They can be
5759master_doc = "index"
5860
5961# General information about the project.
60- project = u "pandas-datareader"
61- copyright = u "2020, The PyData Development Team"
62+ project = "pandas-datareader"
63+ copyright = "2020, The PyData Development Team"
6264author = "The PyData Development Team"
6365
6466# The version info for the project you're documenting, acts as replacement for
7678# The full version, including alpha/beta/rc tags.
7779release = pdr .__version__
7880
81+ # Write version and build date
82+ with open ("_version.txt" , "w" ) as version_file :
83+ doc_date = dt .datetime .now ().strftime ("%B %-d, %Y" )
84+ version_file .write (f"Version: **{ version } ** Date: **{ doc_date } **\n " )
85+
7986# The language for content autogenerated by Sphinx. Refer to documentation
8087# for a list of supported languages.
8188#
Original file line number Diff line number Diff line change 33 You can adapt this file completely to your liking, but it should at least
44 contain the root `toctree` directive.
55
6- .. include :: ../../README.rst
76
8- Documentation
9- -------------
7+ pandas-datareader
8+ =================
9+
10+ .. include :: _version.txt
11+
12+ Up to date remote data access for pandas, works for multiple versions of pandas.
13+
14+
15+ Quick Start
16+ -----------
17+
18+ Install using ``pip ``
19+
20+ .. code-block :: shell
21+
22+ pip install pandas-datareader
23+
24+ and then import and use one of the data readers. This example reads 5-years
25+ of 10-year constant maturity yields on U.S. government bonds.
26+
27+ .. code-block :: python
28+
29+ import pandas_datareader as pdr
30+ pdr.get_data_fred(' GS10' )
31+
32+
33+ Contents
34+ --------
1035
1136Contents:
1237
@@ -19,10 +44,36 @@ Contents:
1944 readers/index
2045 whatsnew.rst
2146
47+ Documentation
48+ -------------
49+
50+ `Stable documentation <https://pydata.github.io/pandas-datareader/ >`__
51+ is available on
52+ `github.io <https://pydata.github.io/pandas-datareader/ >`__.
53+ A second copy of the stable documentation is hosted on
54+ `read the docs <https://pandas-datareader.readthedocs.io/ >`_ for more details.
55+
56+ Recent developments
57+ -------------------
58+ You can install the latest development version using
59+
60+ .. code-block :: shell
61+
62+ pip install git+https://github.com/pydata/pandas-datareader.git
63+
64+ or
65+
66+ .. code-block :: shell
67+
68+ git clone https://github.com/pydata/pandas-datareader.git
69+ cd pandas-datareader
70+ python setup.py install
2271
72+ `Development documentation <https://pydata.github.io/pandas-datareader/devel/ >`__
73+ is available for the latest changes in master.
2374
2475Indices and tables
25- ==================
76+ ------------------
2677
2778* :ref: `genindex `
2879* :ref: `modindex `
You can’t perform that action at this time.
0 commit comments