File tree 2 files changed +64
-6
lines changed
2 files changed +64
-6
lines changed Original file line number Diff line number Diff line change 12
12
#
13
13
# All configuration values have a default; values that are commented out
14
14
# serve to show the default.
15
+ import datetime as dt
16
+
15
17
import pandas_datareader as pdr
16
18
17
19
# Add any Sphinx extension module names here, as strings. They can be
57
59
master_doc = "index"
58
60
59
61
# 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"
62
64
author = "The PyData Development Team"
63
65
64
66
# The version info for the project you're documenting, acts as replacement for
76
78
# The full version, including alpha/beta/rc tags.
77
79
release = pdr .__version__
78
80
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
+
79
86
# The language for content autogenerated by Sphinx. Refer to documentation
80
87
# for a list of supported languages.
81
88
#
Original file line number Diff line number Diff line change 3
3
You can adapt this file completely to your liking, but it should at least
4
4
contain the root `toctree` directive.
5
5
6
- .. include :: ../../README.rst
7
6
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
+ --------
10
35
11
36
Contents:
12
37
@@ -19,10 +44,36 @@ Contents:
19
44
readers/index
20
45
whatsnew.rst
21
46
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
22
71
72
+ `Development documentation <https://pydata.github.io/pandas-datareader/devel/ >`__
73
+ is available for the latest changes in master.
23
74
24
75
Indices and tables
25
- ==================
76
+ ------------------
26
77
27
78
* :ref: `genindex `
28
79
* :ref: `modindex `
You can’t perform that action at this time.
0 commit comments