Skip to content

Commit 0cebd75

Browse files
authored
DOC: Remove all versionchanged / versionadded directives < 1.0.0 (#50057)
1 parent e7ed4ca commit 0cebd75

31 files changed

+6
-105
lines changed

doc/source/user_guide/dsintro.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,8 @@ The ufunc is applied to the underlying array in a :class:`Series`.
712712
ser = pd.Series([1, 2, 3, 4])
713713
np.exp(ser)
714714
715-
.. versionchanged:: 0.25.0
716-
717-
When multiple :class:`Series` are passed to a ufunc, they are aligned before
718-
performing the operation.
715+
When multiple :class:`Series` are passed to a ufunc, they are aligned before
716+
performing the operation.
719717

720718
Like other parts of the library, pandas will automatically align labeled inputs
721719
as part of a ufunc with multiple inputs. For example, using :meth:`numpy.remainder`

doc/source/user_guide/groupby.rst

-2
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,6 @@ For a grouped ``DataFrame``, you can rename in a similar manner:
629629
Named aggregation
630630
~~~~~~~~~~~~~~~~~
631631

632-
.. versionadded:: 0.25.0
633-
634632
To support column-specific aggregation *with control over the output column names*, pandas
635633
accepts the special syntax in :meth:`DataFrameGroupBy.agg` and :meth:`SeriesGroupBy.agg`, known as "named aggregation", where
636634

doc/source/user_guide/io.rst

-6
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ cache_dates : boolean, default True
294294
conversion. May produce significant speed-up when parsing duplicate
295295
date strings, especially ones with timezone offsets.
296296

297-
.. versionadded:: 0.25.0
298-
299297
Iteration
300298
+++++++++
301299

@@ -3829,8 +3827,6 @@ using the `odfpy <https://pypi.org/project/odfpy/>`__ module. The semantics and
38293827
OpenDocument spreadsheets match what can be done for `Excel files`_ using
38303828
``engine='odf'``.
38313829

3832-
.. versionadded:: 0.25
3833-
38343830
The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets
38353831

38363832
.. code-block:: python
@@ -6134,8 +6130,6 @@ No official documentation is available for the SAS7BDAT format.
61346130
SPSS formats
61356131
------------
61366132

6137-
.. versionadded:: 0.25.0
6138-
61396133
The top-level function :func:`read_spss` can read (but not write) SPSS
61406134
SAV (.sav) and ZSAV (.zsav) format files.
61416135

doc/source/user_guide/reshaping.rst

-2
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,6 @@ Note to subdivide over multiple columns we can pass in a list to the
890890
Exploding a list-like column
891891
----------------------------
892892

893-
.. versionadded:: 0.25.0
894-
895893
Sometimes the values in a column are list-like.
896894

897895
.. ipython:: python

doc/source/user_guide/sparse.rst

-5
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ attributes and methods that are specific to sparse data.
127127
This accessor is available only on data with ``SparseDtype``, and on the :class:`Series`
128128
class itself for creating a Series with sparse data from a scipy COO matrix with.
129129

130-
131-
.. versionadded:: 0.25.0
132-
133130
A ``.sparse`` accessor has been added for :class:`DataFrame` as well.
134131
See :ref:`api.frame.sparse` for more.
135132

@@ -271,8 +268,6 @@ Interaction with *scipy.sparse*
271268

272269
Use :meth:`DataFrame.sparse.from_spmatrix` to create a :class:`DataFrame` with sparse values from a sparse matrix.
273270

274-
.. versionadded:: 0.25.0
275-
276271
.. ipython:: python
277272
278273
from scipy.sparse import csr_matrix

doc/source/user_guide/timeseries.rst

-4
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,6 @@ We are stopping on the included end-point as it is part of the index:
647647
dft2 = dft2.swaplevel(0, 1).sort_index()
648648
dft2.loc[idx[:, "2013-01-05"], :]
649649
650-
.. versionadded:: 0.25.0
651-
652650
Slicing with string indexing also honors UTC offset.
653651

654652
.. ipython:: python
@@ -2348,8 +2346,6 @@ To return ``dateutil`` time zone objects, append ``dateutil/`` before the string
23482346
)
23492347
rng_utc.tz
23502348
2351-
.. versionadded:: 0.25.0
2352-
23532349
.. ipython:: python
23542350
23552351
# datetime.timezone

pandas/_libs/interval.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ cdef class IntervalMixin:
126126
"""
127127
Indicates if an interval is empty, meaning it contains no points.
128128
129-
.. versionadded:: 0.25.0
130-
131129
Returns
132130
-------
133131
bool or ndarray

pandas/_libs/tslibs/nattype.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ cdef class _NaT(datetime):
265265
"""
266266
Convert the Timestamp to a NumPy datetime64 or timedelta64.
267267

268-
.. versionadded:: 0.25.0
269-
270268
With the default 'dtype', this is an alias method for `NaT.to_datetime64()`.
271269

272270
The copy parameter is available here only for compatibility. Its value

pandas/_libs/tslibs/timedeltas.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -1243,8 +1243,6 @@ cdef class _Timedelta(timedelta):
12431243
"""
12441244
Convert the Timedelta to a NumPy timedelta64.
12451245

1246-
.. versionadded:: 0.25.0
1247-
12481246
This is an alias method for `Timedelta.to_timedelta64()`. The dtype and
12491247
copy parameters are available here only for compatibility. Their values
12501248
will not affect the return value.

pandas/_libs/tslibs/timestamps.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -1090,8 +1090,6 @@ cdef class _Timestamp(ABCTimestamp):
10901090
"""
10911091
Convert the Timestamp to a NumPy datetime64.
10921092

1093-
.. versionadded:: 0.25.0
1094-
10951093
This is an alias method for `Timestamp.to_datetime64()`. The dtype and
10961094
copy parameters are available here only for compatibility. Their values
10971095
will not affect the return value.

pandas/core/algorithms.py

-4
Original file line numberDiff line numberDiff line change
@@ -1499,8 +1499,6 @@ def searchsorted(
14991499
"""
15001500
Find indices where elements should be inserted to maintain order.
15011501
1502-
.. versionadded:: 0.25.0
1503-
15041502
Find the indices into a sorted array `arr` (a) such that, if the
15051503
corresponding elements in `value` were inserted before the indices,
15061504
the order of `arr` would be preserved.
@@ -1727,8 +1725,6 @@ def safe_sort(
17271725
codes equal to ``-1``. If ``verify=False``, it is assumed there
17281726
are no out of bound codes. Ignored when ``codes`` is None.
17291727
1730-
.. versionadded:: 0.25.0
1731-
17321728
Returns
17331729
-------
17341730
ordered : AnyArrayLike

pandas/core/arrays/categorical.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1568,9 +1568,7 @@ def argsort(
15681568
"""
15691569
Return the indices that would sort the Categorical.
15701570
1571-
.. versionchanged:: 0.25.0
1572-
1573-
Changed to sort missing values at the end.
1571+
Missing values are sorted at the end.
15741572
15751573
Parameters
15761574
----------

pandas/core/arrays/datetimelike.py

-2
Original file line numberDiff line numberDiff line change
@@ -1594,8 +1594,6 @@ def mean(self, *, skipna: bool = True, axis: AxisInt | None = 0):
15941594
"""
15951595
Return the mean value of the Array.
15961596
1597-
.. versionadded:: 0.25.0
1598-
15991597
Parameters
16001598
----------
16011599
skipna : bool, default True

pandas/core/arrays/interval.py

-2
Original file line numberDiff line numberDiff line change
@@ -1596,8 +1596,6 @@ def repeat(
15961596
Return a boolean mask whether the value is contained in the Intervals
15971597
of the %(klass)s.
15981598
1599-
.. versionadded:: 0.25.0
1600-
16011599
Parameters
16021600
----------
16031601
other : scalar

pandas/core/arrays/sparse/accessor.py

-10
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ def to_dense(self) -> Series:
193193
"""
194194
Convert a Series from sparse values to dense.
195195
196-
.. versionadded:: 0.25.0
197-
198196
Returns
199197
-------
200198
Series:
@@ -227,8 +225,6 @@ def to_dense(self) -> Series:
227225
class SparseFrameAccessor(BaseAccessor, PandasDelegate):
228226
"""
229227
DataFrame accessor for sparse data.
230-
231-
.. versionadded:: 0.25.0
232228
"""
233229

234230
def _validate(self, data):
@@ -241,8 +237,6 @@ def from_spmatrix(cls, data, index=None, columns=None) -> DataFrame:
241237
"""
242238
Create a new DataFrame from a scipy sparse matrix.
243239
244-
.. versionadded:: 0.25.0
245-
246240
Parameters
247241
----------
248242
data : scipy.sparse.spmatrix
@@ -297,8 +291,6 @@ def to_dense(self) -> DataFrame:
297291
"""
298292
Convert a DataFrame with sparse values to dense.
299293
300-
.. versionadded:: 0.25.0
301-
302294
Returns
303295
-------
304296
DataFrame
@@ -322,8 +314,6 @@ def to_coo(self):
322314
"""
323315
Return the contents of the frame as a sparse SciPy COO matrix.
324316
325-
.. versionadded:: 0.25.0
326-
327317
Returns
328318
-------
329319
coo_matrix : scipy.sparse.spmatrix

pandas/core/arrays/sparse/array.py

-2
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,6 @@ def from_spmatrix(cls: type[SparseArrayT], data: spmatrix) -> SparseArrayT:
530530
"""
531531
Create a SparseArray from a scipy.sparse matrix.
532532
533-
.. versionadded:: 0.25.0
534-
535533
Parameters
536534
----------
537535
data : scipy.sparse.sp_matrix

pandas/core/frame.py

+2-12
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ class DataFrame(NDFrame, OpsMixin):
489489
occurs if data is a Series or a DataFrame itself. Alignment is done on
490490
Series/DataFrame inputs.
491491
492-
.. versionchanged:: 0.25.0
493-
If data is a list of dicts, column order follows insertion-order.
492+
If data is a list of dicts, column order follows insertion-order.
494493
495494
index : Index or array-like
496495
Index to use for resulting frame. Will default to RangeIndex if
@@ -3151,9 +3150,7 @@ def to_html(
31513150
header="Whether to print column labels, default True",
31523151
col_space_type="str or int, list or dict of int or str",
31533152
col_space="The minimum width of each column in CSS length "
3154-
"units. An int is assumed to be px units.\n\n"
3155-
" .. versionadded:: 0.25.0\n"
3156-
" Ability to use str",
3153+
"units. An int is assumed to be px units.",
31573154
)
31583155
@Substitution(shared_params=fmt.common_docstring, returns=fmt.return_docstring)
31593156
def to_html(
@@ -4349,9 +4346,6 @@ def query(self, expr: str, inplace: bool = False, **kwargs) -> DataFrame | None:
43494346
For example, if one of your columns is called ``a a`` and you want
43504347
to sum it with ``b``, your query should be ```a a` + b``.
43514348
4352-
.. versionadded:: 0.25.0
4353-
Backtick quoting introduced.
4354-
43554349
.. versionadded:: 1.0.0
43564350
Expanding functionality of backtick quoting for more than only spaces.
43574351
@@ -8493,8 +8487,6 @@ def pivot(
84938487
If True: only show observed values for categorical groupers.
84948488
If False: show all values for categorical groupers.
84958489
8496-
.. versionchanged:: 0.25.0
8497-
84988490
sort : bool, default True
84998491
Specifies if the result should be sorted.
85008492
@@ -8808,8 +8800,6 @@ def explode(
88088800
"""
88098801
Transform each element of a list-like to a row, replicating index values.
88108802
8811-
.. versionadded:: 0.25.0
8812-
88138803
Parameters
88148804
----------
88158805
column : IndexLabel

pandas/core/indexes/base.py

-2
Original file line numberDiff line numberDiff line change
@@ -2916,8 +2916,6 @@ def union(self, other, sort=None):
29162916
If the Index objects are incompatible, both Index objects will be
29172917
cast to dtype('object') first.
29182918
2919-
.. versionchanged:: 0.25.0
2920-
29212919
Parameters
29222920
----------
29232921
other : Index or array-like

pandas/core/indexes/range.py

-2
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,6 @@ def _union(self, other: Index, sort):
607607
increasing and other is fully contained in self. Otherwise, returns
608608
an unsorted ``Int64Index``
609609
610-
.. versionadded:: 0.25.0
611-
612610
Returns
613611
-------
614612
union : Index

pandas/core/reshape/merge.py

-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ def merge_ordered(
256256
`right` should be left as-is, with no suffix. At least one of the
257257
values must not be None.
258258
259-
.. versionchanged:: 0.25.0
260259
how : {'left', 'right', 'outer', 'inner'}, default 'outer'
261260
* left: use only keys from left frame (SQL: left outer join)
262261
* right: use only keys from right frame (SQL: right outer join)

pandas/core/series.py

-2
Original file line numberDiff line numberDiff line change
@@ -4117,8 +4117,6 @@ def explode(self, ignore_index: bool = False) -> Series:
41174117
"""
41184118
Transform each element of a list-like to a row.
41194119
4120-
.. versionadded:: 0.25.0
4121-
41224120
Parameters
41234121
----------
41244122
ignore_index : bool, default False

pandas/core/shared_docs.py

-3
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,6 @@
551551
The method to use when for replacement, when `to_replace` is a
552552
scalar, list or tuple and `value` is ``None``.
553553
554-
.. versionchanged:: 0.23.0
555-
Added to DataFrame.
556-
557554
Returns
558555
-------
559556
{klass}

pandas/core/strings/accessor.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ def cat(
456456
to match the length of the calling Series/Index). To disable
457457
alignment, use `.values` on any Series/Index/DataFrame in `others`.
458458
459-
.. versionadded:: 0.23.0
460459
.. versionchanged:: 1.0.0
461460
Changed default of `join` from None to `'left'`.
462461
@@ -2978,7 +2977,7 @@ def len(self):
29782977
_doc_args["casefold"] = {
29792978
"type": "be casefolded",
29802979
"method": "casefold",
2981-
"version": "\n .. versionadded:: 0.25.0\n",
2980+
"version": "",
29822981
}
29832982

29842983
@Appender(_shared_docs["casemethods"] % _doc_args["lower"])

pandas/core/tools/datetimes.py

-3
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,6 @@ def to_datetime(
824824
out-of-bounds values will render the cache unusable and may slow down
825825
parsing.
826826
827-
.. versionchanged:: 0.25.0
828-
changed default value from :const:`False` to :const:`True`.
829-
830827
Returns
831828
-------
832829
datetime

pandas/io/formats/printing.py

-2
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ def format_object_summary(
312312
If False, only break lines when the a line of values gets wider
313313
than the display width.
314314
315-
.. versionadded:: 0.25.0
316-
317315
Returns
318316
-------
319317
summary string

pandas/io/gbq.py

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def read_gbq(
130130
package. It also requires the ``google-cloud-bigquery-storage`` and
131131
``fastavro`` packages.
132132
133-
.. versionadded:: 0.25.0
134133
max_results : int, optional
135134
If set, limit the maximum number of rows to fetch from the query
136135
results.

pandas/io/json/_json.py

-8
Original file line numberDiff line numberDiff line change
@@ -549,19 +549,11 @@ def read_json(
549549
550550
For all ``orient`` values except ``'table'``, default is True.
551551
552-
.. versionchanged:: 0.25.0
553-
554-
Not applicable for ``orient='table'``.
555-
556552
convert_axes : bool, default None
557553
Try to convert the axes to the proper dtypes.
558554
559555
For all ``orient`` values except ``'table'``, default is True.
560556
561-
.. versionchanged:: 0.25.0
562-
563-
Not applicable for ``orient='table'``.
564-
565557
convert_dates : bool or list of str, default True
566558
If True then default datelike columns may be converted (depending on
567559
keep_default_dates).

0 commit comments

Comments
 (0)