Skip to content

Commit db79aa7

Browse files
DOC: fix some sphinx build issues (#14332)
* DOC: proper rst syntax for table * DOC: fix 'Unexpected indentation' * DOC: fix links to offset aliases
1 parent f256ad8 commit db79aa7

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

doc/source/categorical.rst

+11-5
Original file line numberDiff line numberDiff line change
@@ -757,12 +757,18 @@ Use ``.astype`` or ``union_categoricals`` to get ``category`` result.
757757
758758
Following table summarizes the results of ``Categoricals`` related concatenations.
759759

760-
| arg1 | arg2 | result |
761-
|---------|-------------------------------------------|---------|
762-
| category | category (identical categories) | category |
763-
| category | category (different categories, both not ordered) | object (dtype is inferred) |
760+
+----------+--------------------------------------------------------+----------------------------+
761+
| arg1 | arg2 | result |
762+
+==========+========================================================+============================+
763+
| category | category (identical categories) | category |
764+
+----------+--------------------------------------------------------+----------------------------+
765+
| category | category (different categories, both not ordered) | object (dtype is inferred) |
766+
+----------+--------------------------------------------------------+----------------------------+
764767
| category | category (different categories, either one is ordered) | object (dtype is inferred) |
765-
| category | not category | object (dtype is inferred) |
768+
+----------+--------------------------------------------------------+----------------------------+
769+
| category | not category | object (dtype is inferred) |
770+
+----------+--------------------------------------------------------+----------------------------+
771+
766772

767773
Getting Data In/Out
768774
-------------------

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3999,7 +3999,7 @@ def asfreq(self, freq, method=None, how=None, normalize=False):
39993999
converted : type of caller
40004000
40014001
To learn more about the frequency strings, please see `this link
4002-
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
4002+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
40034003
"""
40044004
from pandas.tseries.resample import asfreq
40054005
return asfreq(self, freq, method=method, how=how, normalize=normalize)

pandas/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ def symmetric_difference(self, other, result_name=None):
19941994
``symmetric_difference`` contains elements that appear in either
19951995
``idx1`` or ``idx2`` but not both. Equivalent to the Index created by
19961996
``idx1.difference(idx2) | idx2.difference(idx1)`` with duplicates
1997-
dropped.
1997+
dropped.
19981998
19991999
Examples
20002000
--------

pandas/tseries/index.py

+3
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ class DatetimeIndex(DatelikeOps, TimelikeOps, DatetimeIndexOpsMixin,
196196
name : object
197197
Name to be stored in the index
198198
199+
Notes
200+
-----
201+
199202
To learn more about the frequency strings, please see `this link
200203
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
201204
"""

pandas/tseries/tdi.py

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class TimedeltaIndex(DatetimeIndexOpsMixin, TimelikeOps, Int64Index):
112112
name : object
113113
Name to be stored in the index
114114
115+
Notes
116+
-----
117+
115118
To learn more about the frequency strings, please see `this link
116119
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
117120
"""

0 commit comments

Comments
 (0)