Skip to content

Commit a83e691

Browse files
committed
DOC: add intersphinx mapping for python library, close #1556
1 parent c32cc6e commit a83e691

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

doc/source/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@
234234

235235
# Example configuration for intersphinx: refer to the Python standard library.
236236
intersphinx_mapping = {
237-
'statsmodels' : ('http://statsmodels.sourceforge.net/devel/', None)
237+
'statsmodels' : ('http://statsmodels.sourceforge.net/devel/', None),
238+
'python': ('http://docs.python.org/', None)
238239
}
239240
import glob
240241
autosummary_generate = glob.glob("*.rst")

doc/source/io.rst

+4-6
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ data into a DataFrame object. They can take a number of arguments:
7070
cases by "sniffing." The separator may be specified as a regular
7171
expression; for instance you may use '\s*' to indicate arbitrary
7272
whitespace.
73-
- ``dialect``: string or csv.Dialect instance to expose more ways to specify
73+
- ``dialect``: string or :class:`python:csv.Dialect` instance to expose more ways to specify
7474
the file format
7575
- ``header``: row number to use as the column names, and the start of the data.
7676
Defaults to 0 (first row); specify None if there is no header row.
@@ -164,7 +164,7 @@ You can also use a list of columns to create a hierarchical index:
164164

165165
The ``dialect`` keyword gives greater flexibility in specifying the file format.
166166
By default it uses the Excel dialect but you can specify either the dialect name
167-
or a `csv.Dialect <docs.python.org/library/csv.html#csv.Dialect>`_ instance.
167+
or a :class:``python:csv.Dialect`` instance.
168168

169169
.. ipython:: python
170170
:suppress:
@@ -573,8 +573,8 @@ Automatically "sniffing" the delimiter
573573
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
574574

575575
``read_csv`` is capable of inferring delimited (not necessarily
576-
comma-separated) files. YMMV, as pandas uses the Sniffer_ class of the csv
577-
module.
576+
comma-separated) files. YMMV, as pandas uses the :class:`python:csv.Sniffer`
577+
class of the csv module.
578578

579579
.. ipython:: python
580580
:suppress:
@@ -588,8 +588,6 @@ module.
588588
print open('tmp2.sv').read()
589589
read_csv('tmp2.sv')
590590
591-
.. _Sniffer: http://docs.python.org/library/csv.html#csv.Sniffer
592-
593591
.. _io.chunking:
594592

595593
Iterating through files chunk by chunk

0 commit comments

Comments
 (0)