Skip to content

Commit 9936902

Browse files
DOC: remove versionadded/changed:: 0.24 (#41851)
1 parent 5abb02e commit 9936902

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+9
-305
lines changed

doc/source/development/extending.rst

-4
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ extension array for IP Address data, this might be ``ipaddress.IPv4Address``.
106106

107107
See the `extension dtype source`_ for interface definition.
108108

109-
.. versionadded:: 0.24.0
110-
111109
:class:`pandas.api.extension.ExtensionDtype` can be registered to pandas to allow creation via a string dtype name.
112110
This allows one to instantiate ``Series`` and ``.astype()`` with a registered string name, for
113111
example ``'category'`` is a registered string accessor for the ``CategoricalDtype``.
@@ -141,8 +139,6 @@ and comments contain guidance for properly implementing the interface.
141139
:class:`~pandas.api.extensions.ExtensionArray` operator support
142140
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143141

144-
.. versionadded:: 0.24.0
145-
146142
By default, there are no operators defined for the class :class:`~pandas.api.extensions.ExtensionArray`.
147143
There are two approaches for providing operator support for your ExtensionArray:
148144

doc/source/user_guide/advanced.rst

-7
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ analysis.
4040

4141
See the :ref:`cookbook<cookbook.multi_index>` for some advanced strategies.
4242

43-
.. versionchanged:: 0.24.0
44-
45-
:attr:`MultiIndex.labels` has been renamed to :attr:`MultiIndex.codes`
46-
and :attr:`MultiIndex.set_labels` to :attr:`MultiIndex.set_codes`.
47-
4843
Creating a MultiIndex (hierarchical index) object
4944
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5045

@@ -87,8 +82,6 @@ You can also construct a ``MultiIndex`` from a ``DataFrame`` directly, using
8782
the method :meth:`MultiIndex.from_frame`. This is a complementary method to
8883
:meth:`MultiIndex.to_frame`.
8984

90-
.. versionadded:: 0.24.0
91-
9285
.. ipython:: python
9386
9487
df = pd.DataFrame(

doc/source/user_guide/basics.rst

-2
Original file line numberDiff line numberDiff line change
@@ -1490,8 +1490,6 @@ for altering the ``Series.name`` attribute.
14901490
14911491
.. _basics.rename_axis:
14921492

1493-
.. versionadded:: 0.24.0
1494-
14951493
The methods :meth:`DataFrame.rename_axis` and :meth:`Series.rename_axis`
14961494
allow specific names of a ``MultiIndex`` to be changed (as opposed to the
14971495
labels).

doc/source/user_guide/computation.rst

-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ Like ``cov``, ``corr`` also supports the optional ``min_periods`` keyword:
141141
frame.corr(min_periods=12)
142142
143143
144-
.. versionadded:: 0.24.0
145-
146144
The ``method`` argument can also be a callable for a generic correlation
147145
calculation. In this case, it should be a single function
148146
that produces a single value from two ndarray inputs. Suppose we wanted to

doc/source/user_guide/groupby.rst

-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ We could naturally group by either the ``A`` or ``B`` columns, or both:
125125
grouped = df.groupby("A")
126126
grouped = df.groupby(["A", "B"])
127127
128-
.. versionadded:: 0.24
129-
130128
If we also have a MultiIndex on columns ``A`` and ``B``, we can group by all
131129
but the specified columns
132130

doc/source/user_guide/integer_na.rst

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
Nullable integer data type
99
**************************
1010

11-
.. versionadded:: 0.24.0
12-
1311
.. note::
1412

1513
IntegerArray is currently experimental. Its API or implementation may

doc/source/user_guide/io.rst

-14
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ compression : {``'infer'``, ``'gzip'``, ``'bz2'``, ``'zip'``, ``'xz'``, ``None``
297297
create a reproducible gzip archive:
298298
``compression={'method': 'gzip', 'compresslevel': 1, 'mtime': 1}``.
299299

300-
.. versionchanged:: 0.24.0 'infer' option added and set to default.
301300
.. versionchanged:: 1.1.0 dict option extended to support ``gzip`` and ``bz2``.
302301
.. versionchanged:: 1.2.0 Previous versions forwarded dict entries for 'gzip' to ``gzip.open``.
303302
thousands : str, default ``None``
@@ -2714,8 +2713,6 @@ table CSS classes. Note that these classes are *appended* to the existing
27142713
The ``render_links`` argument provides the ability to add hyperlinks to cells
27152714
that contain URLs.
27162715

2717-
.. versionadded:: 0.24
2718-
27192716
.. ipython:: python
27202717
27212718
url_df = pd.DataFrame(
@@ -3590,8 +3587,6 @@ indices to be parsed.
35903587
35913588
Element order is ignored, so ``usecols=[0, 1]`` is the same as ``[1, 0]``.
35923589

3593-
.. versionadded:: 0.24
3594-
35953590
If ``usecols`` is a list of strings, it is assumed that each string corresponds
35963591
to a column name provided either by the user in ``names`` or inferred from the
35973592
document header row(s). Those strings define which columns will be parsed:
@@ -3602,8 +3597,6 @@ document header row(s). Those strings define which columns will be parsed:
36023597
36033598
Element order is ignored, so ``usecols=['baz', 'joe']`` is the same as ``['joe', 'baz']``.
36043599

3605-
.. versionadded:: 0.24
3606-
36073600
If ``usecols`` is callable, the callable function will be evaluated against
36083601
the column names, returning names where the callable function evaluates to ``True``.
36093602

@@ -4260,9 +4253,6 @@ everything in the sub-store and **below**, so be *careful*.
42604253
You can walk through the group hierarchy using the ``walk`` method which
42614254
will yield a tuple for each group key along with the relative keys of its contents.
42624255

4263-
.. versionadded:: 0.24.0
4264-
4265-
42664256
.. ipython:: python
42674257
42684258
for (path, subgroups, subkeys) in store.walk():
@@ -5439,8 +5429,6 @@ underlying engine's default behavior.
54395429
Partitioning Parquet files
54405430
''''''''''''''''''''''''''
54415431

5442-
.. versionadded:: 0.24.0
5443-
54445432
Parquet supports partitioning of data based on the values of one or more columns.
54455433

54465434
.. ipython:: python
@@ -5668,8 +5656,6 @@ will convert the data to UTC.
56685656
Insertion method
56695657
++++++++++++++++
56705658

5671-
.. versionadded:: 0.24.0
5672-
56735659
The parameter ``method`` controls the SQL insertion clause used.
56745660
Possible values are:
56755661

doc/source/user_guide/sparse.rst

-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ in many places
114114
Sparse accessor
115115
---------------
116116

117-
.. versionadded:: 0.24.0
118-
119117
pandas provides a ``.sparse`` accessor, similar to ``.str`` for string data, ``.cat``
120118
for categorical data, and ``.dt`` for datetime-like data. This namespace provides
121119
attributes and methods that are specific to sparse data.

pandas/_libs/interval.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,6 @@ cdef class Interval(IntervalMixin):
449449
endpoints. Intervals that only have an open endpoint in common do not
450450
overlap.
451451
452-
.. versionadded:: 0.24.0
453-
454452
Parameters
455453
----------
456454
other : Interval

pandas/_libs/lib.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -1063,8 +1063,6 @@ def is_list_like(obj: object, allow_sets: bool = True) -> bool:
10631063
allow_sets : bool, default True
10641064
If this parameter is False, sets will not be considered list-like.
10651065

1066-
.. versionadded:: 0.24.0
1067-
10681066
Returns
10691067
-------
10701068
bool

pandas/_libs/tslibs/nattype.pyx

-11
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,6 @@ class NaTType(_NaT):
744744
* 'NaT' will return NaT for an ambiguous time.
745745
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
746746
747-
.. versionadded:: 0.24.0
748747
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
749748
timedelta}, default 'raise'
750749
A nonexistent time does not exist in a particular timezone
@@ -759,8 +758,6 @@ timedelta}, default 'raise'
759758
* 'raise' will raise an NonExistentTimeError if there are
760759
nonexistent times.
761760
762-
.. versionadded:: 0.24.0
763-
764761
Returns
765762
-------
766763
a new Timestamp rounded to the given resolution of `freq`
@@ -822,7 +819,6 @@ timedelta}, default 'raise'
822819
* 'NaT' will return NaT for an ambiguous time.
823820
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
824821
825-
.. versionadded:: 0.24.0
826822
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
827823
timedelta}, default 'raise'
828824
A nonexistent time does not exist in a particular timezone
@@ -837,8 +833,6 @@ timedelta}, default 'raise'
837833
* 'raise' will raise an NonExistentTimeError if there are
838834
nonexistent times.
839835
840-
.. versionadded:: 0.24.0
841-
842836
Raises
843837
------
844838
ValueError if the freq cannot be converted.
@@ -896,7 +890,6 @@ timedelta}, default 'raise'
896890
* 'NaT' will return NaT for an ambiguous time.
897891
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
898892
899-
.. versionadded:: 0.24.0
900893
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
901894
timedelta}, default 'raise'
902895
A nonexistent time does not exist in a particular timezone
@@ -911,8 +904,6 @@ timedelta}, default 'raise'
911904
* 'raise' will raise an NonExistentTimeError if there are
912905
nonexistent times.
913906
914-
.. versionadded:: 0.24.0
915-
916907
Raises
917908
------
918909
ValueError if the freq cannot be converted.
@@ -1041,8 +1032,6 @@ default 'raise'
10411032
* 'raise' will raise an NonExistentTimeError if there are
10421033
nonexistent times.
10431034
1044-
.. versionadded:: 0.24.0
1045-
10461035
Returns
10471036
-------
10481037
localized : Timestamp

pandas/_libs/tslibs/timestamps.pyx

-11
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,6 @@ class Timestamp(_Timestamp):
13781378
* 'NaT' will return NaT for an ambiguous time.
13791379
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
13801380
1381-
.. versionadded:: 0.24.0
13821381
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
13831382
timedelta}, default 'raise'
13841383
A nonexistent time does not exist in a particular timezone
@@ -1393,8 +1392,6 @@ timedelta}, default 'raise'
13931392
* 'raise' will raise an NonExistentTimeError if there are
13941393
nonexistent times.
13951394
1396-
.. versionadded:: 0.24.0
1397-
13981395
Returns
13991396
-------
14001397
a new Timestamp rounded to the given resolution of `freq`
@@ -1458,7 +1455,6 @@ timedelta}, default 'raise'
14581455
* 'NaT' will return NaT for an ambiguous time.
14591456
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
14601457
1461-
.. versionadded:: 0.24.0
14621458
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
14631459
timedelta}, default 'raise'
14641460
A nonexistent time does not exist in a particular timezone
@@ -1473,8 +1469,6 @@ timedelta}, default 'raise'
14731469
* 'raise' will raise an NonExistentTimeError if there are
14741470
nonexistent times.
14751471
1476-
.. versionadded:: 0.24.0
1477-
14781472
Raises
14791473
------
14801474
ValueError if the freq cannot be converted.
@@ -1532,7 +1526,6 @@ timedelta}, default 'raise'
15321526
* 'NaT' will return NaT for an ambiguous time.
15331527
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
15341528
1535-
.. versionadded:: 0.24.0
15361529
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
15371530
timedelta}, default 'raise'
15381531
A nonexistent time does not exist in a particular timezone
@@ -1547,8 +1540,6 @@ timedelta}, default 'raise'
15471540
* 'raise' will raise an NonExistentTimeError if there are
15481541
nonexistent times.
15491542
1550-
.. versionadded:: 0.24.0
1551-
15521543
Raises
15531544
------
15541545
ValueError if the freq cannot be converted.
@@ -1669,8 +1660,6 @@ default 'raise'
16691660
* 'raise' will raise an NonExistentTimeError if there are
16701661
nonexistent times.
16711662
1672-
.. versionadded:: 0.24.0
1673-
16741663
Returns
16751664
-------
16761665
localized : Timestamp

pandas/_libs/tslibs/tzconversion.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ def tz_localize_to_utc(ndarray[int64_t] vals, tzinfo tz, object ambiguous=None,
110110
timedelta-like}
111111
How to handle non-existent times when converting wall times to UTC
112112
113-
.. versionadded:: 0.24.0
114-
115113
Returns
116114
-------
117115
localized : ndarray[int64_t]

pandas/core/algorithms.py

-2
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,6 @@ def mode(values, dropna: bool = True) -> Series:
938938
dropna : bool, default True
939939
Don't consider counts of NaN/NaT.
940940
941-
.. versionadded:: 0.24.0
942-
943941
Returns
944942
-------
945943
mode : Series

pandas/core/arrays/base.py

-8
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ def _from_sequence_of_strings(
251251
"""
252252
Construct a new ExtensionArray from a sequence of strings.
253253
254-
.. versionadded:: 0.24.0
255-
256254
Parameters
257255
----------
258256
strings : Sequence
@@ -755,8 +753,6 @@ def shift(self, periods: int = 1, fill_value: object = None) -> ExtensionArray:
755753
Newly introduced missing values are filled with
756754
``self.dtype.na_value``.
757755
758-
.. versionadded:: 0.24.0
759-
760756
Parameters
761757
----------
762758
periods : int, default 1
@@ -767,8 +763,6 @@ def shift(self, periods: int = 1, fill_value: object = None) -> ExtensionArray:
767763
The scalar value to use for newly introduced missing values.
768764
The default is ``self.dtype.na_value``.
769765
770-
.. versionadded:: 0.24.0
771-
772766
Returns
773767
-------
774768
ExtensionArray
@@ -817,8 +811,6 @@ def searchsorted(self, value, side="left", sorter=None):
817811
"""
818812
Find indices where elements should be inserted to maintain order.
819813
820-
.. versionadded:: 0.24.0
821-
822814
Find the indices into a sorted array `self` (a) such that, if the
823815
corresponding elements in `value` were inserted before the indices,
824816
the order of `self` would be preserved.

pandas/core/arrays/categorical.py

-7
Original file line numberDiff line numberDiff line change
@@ -653,11 +653,6 @@ def from_codes(
653653
If :class:`CategoricalDtype`, cannot be used together with
654654
`categories` or `ordered`.
655655
656-
.. versionadded:: 0.24.0
657-
658-
When `dtype` is provided, neither `categories` nor `ordered`
659-
should be provided.
660-
661656
Returns
662657
-------
663658
Categorical
@@ -2170,8 +2165,6 @@ def mode(self, dropna=True):
21702165
dropna : bool, default True
21712166
Don't consider counts of NaN/NaT.
21722167
2173-
.. versionadded:: 0.24.0
2174-
21752168
Returns
21762169
-------
21772170
modes : `Categorical` (sorted)

pandas/core/arrays/datetimelike.py

-4
Original file line numberDiff line numberDiff line change
@@ -1596,8 +1596,6 @@ def strftime(self, date_format: str) -> np.ndarray:
15961596
- 'raise' will raise an AmbiguousTimeError if there are ambiguous
15971597
times.
15981598
1599-
.. versionadded:: 0.24.0
1600-
16011599
nonexistent : 'shift_forward', 'shift_backward', 'NaT', timedelta, default 'raise'
16021600
A nonexistent time does not exist in a particular timezone
16031601
where clocks moved forward due to DST.
@@ -1611,8 +1609,6 @@ def strftime(self, date_format: str) -> np.ndarray:
16111609
- 'raise' will raise an NonExistentTimeError if there are
16121610
nonexistent times.
16131611
1614-
.. versionadded:: 0.24.0
1615-
16161612
Returns
16171613
-------
16181614
DatetimeIndex, TimedeltaIndex, or Series

pandas/core/arrays/datetimes.py

-4
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ class DatetimeArray(dtl.TimelikeOps, dtl.DatelikeOps):
151151
"""
152152
Pandas ExtensionArray for tz-naive or tz-aware datetime data.
153153
154-
.. versionadded:: 0.24.0
155-
156154
.. warning::
157155
158156
DatetimeArray is currently experimental, and its API may change
@@ -910,8 +908,6 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise") -> DatetimeArr
910908
- 'raise' will raise an NonExistentTimeError if there are
911909
nonexistent times.
912910
913-
.. versionadded:: 0.24.0
914-
915911
Returns
916912
-------
917913
Same type as self

0 commit comments

Comments
 (0)