Skip to content

Commit 32a5966

Browse files
docstring updates
1 parent 5e1b831 commit 32a5966

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

pandas/core/indexes/base.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,8 +2273,8 @@ def union(self, other, sort=None):
22732273
22742274
.. versionchanged:: 0.24.1
22752275
2276-
Changed the default `sort` from True to None (without
2277-
change in behaviour).
2276+
Changed the default value from ``True`` to ``None``
2277+
(without change in behaviour).
22782278
22792279
Returns
22802280
-------
@@ -2373,7 +2373,8 @@ def intersection(self, other, sort=False):
23732373
23742374
.. versionchanged:: 0.24.1
23752375
2376-
Changed the default from ``True`` to ``False``.
2376+
Changed the default from ``True`` to ``False``, to match
2377+
the behaviour of 0.23.4 and earlier.
23772378
23782379
Returns
23792380
-------
@@ -2463,8 +2464,8 @@ def difference(self, other, sort=None):
24632464
24642465
.. versionchanged:: 0.24.1
24652466
2466-
Changed `True` to `None`, which matches the behavior of
2467-
pandas 0.23.4 and earlier.
2467+
Changed the default value from ``True`` to ``None``
2468+
(without change in behaviour).
24682469
24692470
Returns
24702471
-------
@@ -2526,8 +2527,8 @@ def symmetric_difference(self, other, result_name=None, sort=None):
25262527
25272528
.. versionchanged:: 0.24.1
25282529
2529-
Changed `True` to `None`, which matches the behavior of
2530-
pandas 0.23.4 and earlier.
2530+
Changed the default value from ``True`` to ``None``
2531+
(without change in behaviour).
25312532
25322533
Returns
25332534
-------

pandas/core/indexes/multi.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2902,8 +2902,8 @@ def union(self, other, sort=None):
29022902
29032903
.. versionchanged:: 0.24.1
29042904
2905-
Changed the default `sort` from True to None, matching the
2906-
behavior of pandas 0.23.4 and earlier.
2905+
Changed the default value from ``True`` to ``None``
2906+
(without change in behaviour).
29072907
29082908
Returns
29092909
-------
@@ -2941,7 +2941,7 @@ def intersection(self, other, sort=False):
29412941
29422942
.. versionchanged:: 0.24.1
29432943
2944-
Changed the default to ``False``, to match
2944+
Changed the default from ``True`` to ``False``, to match
29452945
behaviour from before 0.24.0
29462946
29472947
Returns
@@ -2982,6 +2982,11 @@ def difference(self, other, sort=None):
29822982
29832983
.. versionadded:: 0.24.0
29842984
2985+
.. versionchanged:: 0.24.1
2986+
2987+
Changed the default value from ``True`` to ``None``
2988+
(without change in behaviour).
2989+
29852990
Returns
29862991
-------
29872992
diff : MultiIndex

0 commit comments

Comments
 (0)