Skip to content

Commit 6255cab

Browse files
committed
fix pandas intersphinx links
1 parent bd668f4 commit 6255cab

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def download_logo():
9494

9595

9696
intersphinx_mapping = {
97-
'python': ('https://docs.python.org/3/', None),
97+
'python': ('https://docs.python.org/3', None),
98+
'pandas': ('https://pandas.pydata.org/docs', None),
9899
# cannot download objects.inv of seaborn, see https://github.com/mwaskom/seaborn/issues/1133
99100
# 'seaborn': ('https://seaborn.pydata.org/objects.inv', None),
100101
}

sugar/_io/tab/xsv.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def read_fts_tsv(f, sep='\t', **kw):
3232
:param str sep: Separator of the fields, defaults to ``'\t'``
3333
:param str ftype: Parameter used as feature type, if parameter is not present use the value
3434
of ftype itself.
35-
:param \*\*kw: All other kwargs are passed to `pandas.read_csv()`
35+
:param \*\*kw: All other kwargs are passed to :func:`pandas.read_csv()`
3636
3737
"""
3838
return _read_xsv(f, sep=sep, **kw)
@@ -46,7 +46,7 @@ def read_fts_csv(f, sep=',', **kw):
4646
:param str sep: Separator of the fields, defaults to ``','``
4747
:param str ftype: Parameter used as feature type, if parameter is not present use the value
4848
of ftype itself.
49-
:param \*\*kw: All other kwargs are passed to `pandas.read_csv()`
49+
:param \*\*kw: All other kwargs are passed to :func:`pandas.read_csv()`
5050
"""
5151
return _read_xsv(f, sep=sep, **kw)
5252

@@ -60,7 +60,7 @@ def write_fts_tsv(fts, f, sep='\t', **kw):
6060
:param vals: Parameters from the metadata or location to write,
6161
``'len'`` is also allowed,
6262
might be a string or tuple, defaults to ``'type start stop strand'``
63-
:param \*\*kw: All other kwargs are passed to `pandas.DataFrame.to_csv()`
63+
:param \*\*kw: All other kwargs are passed to :meth:`pandas.DataFrame.to_csv()`
6464
6565
"""
6666
return _write_xsv(fts, f, sep=sep, **kw)
@@ -75,7 +75,7 @@ def write_fts_csv(fts, f, sep=',', **kw):
7575
:param vals: Parameters from the metadata or location to write,
7676
``'len'`` is also allowed,
7777
might be a string or tuple, defaults to ``'type start stop strand'``
78-
:param \*\*kw: All other kwargs are passed to `pandas.DataFrame.to_csv()`
78+
:param \*\*kw: All other kwargs are passed to :meth:`pandas.DataFrame.to_csv()`
7979
"""
8080
return _write_xsv(fts, f, sep=sep, **kw)
8181

@@ -95,5 +95,3 @@ def _write_xsv(fts: FeatureList, f, vals='type start stop strand', dtype=None, i
9595
except ImportError:
9696
raise ImportError('TSV/CSV writer depends on pandas module')
9797
return df.to_csv(f, index=index, **kw)
98-
99-

0 commit comments

Comments
 (0)