diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index 571f8980070af..9aa6423908cfd 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -712,10 +712,8 @@ The ufunc is applied to the underlying array in a :class:`Series`. ser = pd.Series([1, 2, 3, 4]) np.exp(ser) -.. versionchanged:: 0.25.0 - - When multiple :class:`Series` are passed to a ufunc, they are aligned before - performing the operation. +When multiple :class:`Series` are passed to a ufunc, they are aligned before +performing the operation. Like other parts of the library, pandas will automatically align labeled inputs as part of a ufunc with multiple inputs. For example, using :meth:`numpy.remainder` diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index d8a36b1711b6e..1e2b6d6fe4c20 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -629,8 +629,6 @@ For a grouped ``DataFrame``, you can rename in a similar manner: Named aggregation ~~~~~~~~~~~~~~~~~ -.. versionadded:: 0.25.0 - To support column-specific aggregation *with control over the output column names*, pandas accepts the special syntax in :meth:`DataFrameGroupBy.agg` and :meth:`SeriesGroupBy.agg`, known as "named aggregation", where diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index f1c212b53a87a..d6a00022efb79 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -294,8 +294,6 @@ cache_dates : boolean, default True conversion. May produce significant speed-up when parsing duplicate date strings, especially ones with timezone offsets. - .. versionadded:: 0.25.0 - Iteration +++++++++ @@ -3829,8 +3827,6 @@ using the `odfpy `__ module. The semantics and OpenDocument spreadsheets match what can be done for `Excel files`_ using ``engine='odf'``. -.. versionadded:: 0.25 - The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets .. code-block:: python @@ -6134,8 +6130,6 @@ No official documentation is available for the SAS7BDAT format. SPSS formats ------------ -.. versionadded:: 0.25.0 - The top-level function :func:`read_spss` can read (but not write) SPSS SAV (.sav) and ZSAV (.zsav) format files. diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst index adca9de6c130a..1b8fdc75d5e88 100644 --- a/doc/source/user_guide/reshaping.rst +++ b/doc/source/user_guide/reshaping.rst @@ -890,8 +890,6 @@ Note to subdivide over multiple columns we can pass in a list to the Exploding a list-like column ---------------------------- -.. versionadded:: 0.25.0 - Sometimes the values in a column are list-like. .. ipython:: python diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst index bc4eec1c23a35..c86208e70af3c 100644 --- a/doc/source/user_guide/sparse.rst +++ b/doc/source/user_guide/sparse.rst @@ -127,9 +127,6 @@ attributes and methods that are specific to sparse data. This accessor is available only on data with ``SparseDtype``, and on the :class:`Series` class itself for creating a Series with sparse data from a scipy COO matrix with. - -.. versionadded:: 0.25.0 - A ``.sparse`` accessor has been added for :class:`DataFrame` as well. See :ref:`api.frame.sparse` for more. @@ -271,8 +268,6 @@ Interaction with *scipy.sparse* Use :meth:`DataFrame.sparse.from_spmatrix` to create a :class:`DataFrame` with sparse values from a sparse matrix. -.. versionadded:: 0.25.0 - .. ipython:: python from scipy.sparse import csr_matrix diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 474068e43a4d4..78134872fa4b8 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -647,8 +647,6 @@ We are stopping on the included end-point as it is part of the index: dft2 = dft2.swaplevel(0, 1).sort_index() dft2.loc[idx[:, "2013-01-05"], :] -.. versionadded:: 0.25.0 - Slicing with string indexing also honors UTC offset. .. ipython:: python @@ -2348,8 +2346,6 @@ To return ``dateutil`` time zone objects, append ``dateutil/`` before the string ) rng_utc.tz -.. versionadded:: 0.25.0 - .. ipython:: python # datetime.timezone diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 5b2cb880195ec..fc2c486173b9d 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -126,8 +126,6 @@ cdef class IntervalMixin: """ Indicates if an interval is empty, meaning it contains no points. - .. versionadded:: 0.25.0 - Returns ------- bool or ndarray diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 1f18f8cae4ae8..aa75c886a4491 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -265,8 +265,6 @@ cdef class _NaT(datetime): """ Convert the Timestamp to a NumPy datetime64 or timedelta64. - .. versionadded:: 0.25.0 - With the default 'dtype', this is an alias method for `NaT.to_datetime64()`. The copy parameter is available here only for compatibility. Its value diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index fc276d5d024cd..618e0208154fa 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1243,8 +1243,6 @@ cdef class _Timedelta(timedelta): """ Convert the Timedelta to a NumPy timedelta64. - .. versionadded:: 0.25.0 - This is an alias method for `Timedelta.to_timedelta64()`. The dtype and copy parameters are available here only for compatibility. Their values will not affect the return value. diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index f987a2feb2717..108c884bba170 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1090,8 +1090,6 @@ cdef class _Timestamp(ABCTimestamp): """ Convert the Timestamp to a NumPy datetime64. - .. versionadded:: 0.25.0 - This is an alias method for `Timestamp.to_datetime64()`. The dtype and copy parameters are available here only for compatibility. Their values will not affect the return value. diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index cd719a5256ea3..de9e3ace4f0ca 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1499,8 +1499,6 @@ def searchsorted( """ Find indices where elements should be inserted to maintain order. - .. versionadded:: 0.25.0 - Find the indices into a sorted array `arr` (a) such that, if the corresponding elements in `value` were inserted before the indices, the order of `arr` would be preserved. @@ -1727,8 +1725,6 @@ def safe_sort( codes equal to ``-1``. If ``verify=False``, it is assumed there are no out of bound codes. Ignored when ``codes`` is None. - .. versionadded:: 0.25.0 - Returns ------- ordered : AnyArrayLike diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index a9af210e08741..030b1344d5348 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1568,9 +1568,7 @@ def argsort( """ Return the indices that would sort the Categorical. - .. versionchanged:: 0.25.0 - - Changed to sort missing values at the end. + Missing values are sorted at the end. Parameters ---------- diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index be20d825b0c80..c0a65a97d31f8 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1594,8 +1594,6 @@ def mean(self, *, skipna: bool = True, axis: AxisInt | None = 0): """ Return the mean value of the Array. - .. versionadded:: 0.25.0 - Parameters ---------- skipna : bool, default True diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 5ebd882cd3a13..3028e276361d3 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -1596,8 +1596,6 @@ def repeat( Return a boolean mask whether the value is contained in the Intervals of the %(klass)s. - .. versionadded:: 0.25.0 - Parameters ---------- other : scalar diff --git a/pandas/core/arrays/sparse/accessor.py b/pandas/core/arrays/sparse/accessor.py index 5149dc0973b79..1d5fd09034ae0 100644 --- a/pandas/core/arrays/sparse/accessor.py +++ b/pandas/core/arrays/sparse/accessor.py @@ -193,8 +193,6 @@ def to_dense(self) -> Series: """ Convert a Series from sparse values to dense. - .. versionadded:: 0.25.0 - Returns ------- Series: @@ -227,8 +225,6 @@ def to_dense(self) -> Series: class SparseFrameAccessor(BaseAccessor, PandasDelegate): """ DataFrame accessor for sparse data. - - .. versionadded:: 0.25.0 """ def _validate(self, data): @@ -241,8 +237,6 @@ def from_spmatrix(cls, data, index=None, columns=None) -> DataFrame: """ Create a new DataFrame from a scipy sparse matrix. - .. versionadded:: 0.25.0 - Parameters ---------- data : scipy.sparse.spmatrix @@ -297,8 +291,6 @@ def to_dense(self) -> DataFrame: """ Convert a DataFrame with sparse values to dense. - .. versionadded:: 0.25.0 - Returns ------- DataFrame @@ -322,8 +314,6 @@ def to_coo(self): """ Return the contents of the frame as a sparse SciPy COO matrix. - .. versionadded:: 0.25.0 - Returns ------- coo_matrix : scipy.sparse.spmatrix diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 7dce02f362b47..033917fe9eb2d 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -530,8 +530,6 @@ def from_spmatrix(cls: type[SparseArrayT], data: spmatrix) -> SparseArrayT: """ Create a SparseArray from a scipy.sparse matrix. - .. versionadded:: 0.25.0 - Parameters ---------- data : scipy.sparse.sp_matrix diff --git a/pandas/core/frame.py b/pandas/core/frame.py index eb3365d4f8410..acdfaba3d8d86 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -489,8 +489,7 @@ class DataFrame(NDFrame, OpsMixin): occurs if data is a Series or a DataFrame itself. Alignment is done on Series/DataFrame inputs. - .. versionchanged:: 0.25.0 - If data is a list of dicts, column order follows insertion-order. + If data is a list of dicts, column order follows insertion-order. index : Index or array-like Index to use for resulting frame. Will default to RangeIndex if @@ -3151,9 +3150,7 @@ def to_html( header="Whether to print column labels, default True", col_space_type="str or int, list or dict of int or str", col_space="The minimum width of each column in CSS length " - "units. An int is assumed to be px units.\n\n" - " .. versionadded:: 0.25.0\n" - " Ability to use str", + "units. An int is assumed to be px units.", ) @Substitution(shared_params=fmt.common_docstring, returns=fmt.return_docstring) def to_html( @@ -4349,9 +4346,6 @@ def query(self, expr: str, inplace: bool = False, **kwargs) -> DataFrame | None: For example, if one of your columns is called ``a a`` and you want to sum it with ``b``, your query should be ```a a` + b``. - .. versionadded:: 0.25.0 - Backtick quoting introduced. - .. versionadded:: 1.0.0 Expanding functionality of backtick quoting for more than only spaces. @@ -8493,8 +8487,6 @@ def pivot( If True: only show observed values for categorical groupers. If False: show all values for categorical groupers. - .. versionchanged:: 0.25.0 - sort : bool, default True Specifies if the result should be sorted. @@ -8808,8 +8800,6 @@ def explode( """ Transform each element of a list-like to a row, replicating index values. - .. versionadded:: 0.25.0 - Parameters ---------- column : IndexLabel diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0b55416d2bd7e..b962ca780f1d0 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2916,8 +2916,6 @@ def union(self, other, sort=None): If the Index objects are incompatible, both Index objects will be cast to dtype('object') first. - .. versionchanged:: 0.25.0 - Parameters ---------- other : Index or array-like diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index ae88b85aa06e1..a2281c6fd9540 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -607,8 +607,6 @@ def _union(self, other: Index, sort): increasing and other is fully contained in self. Otherwise, returns an unsorted ``Int64Index`` - .. versionadded:: 0.25.0 - Returns ------- union : Index diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index b6fa5da857910..7e0052cf896e4 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -256,7 +256,6 @@ def merge_ordered( `right` should be left as-is, with no suffix. At least one of the values must not be None. - .. versionchanged:: 0.25.0 how : {'left', 'right', 'outer', 'inner'}, default 'outer' * left: use only keys from left frame (SQL: left outer join) * right: use only keys from right frame (SQL: right outer join) diff --git a/pandas/core/series.py b/pandas/core/series.py index 48bc07ca022ee..1e5f565934b50 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4117,8 +4117,6 @@ def explode(self, ignore_index: bool = False) -> Series: """ Transform each element of a list-like to a row. - .. versionadded:: 0.25.0 - Parameters ---------- ignore_index : bool, default False diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 07dc203e556e8..147fa622fdedc 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -551,9 +551,6 @@ The method to use when for replacement, when `to_replace` is a scalar, list or tuple and `value` is ``None``. - .. versionchanged:: 0.23.0 - Added to DataFrame. - Returns ------- {klass} diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 8cd4cb976503d..9ac2e538b6a80 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -456,7 +456,6 @@ def cat( to match the length of the calling Series/Index). To disable alignment, use `.values` on any Series/Index/DataFrame in `others`. - .. versionadded:: 0.23.0 .. versionchanged:: 1.0.0 Changed default of `join` from None to `'left'`. @@ -2978,7 +2977,7 @@ def len(self): _doc_args["casefold"] = { "type": "be casefolded", "method": "casefold", - "version": "\n .. versionadded:: 0.25.0\n", + "version": "", } @Appender(_shared_docs["casemethods"] % _doc_args["lower"]) diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 430343beb630b..fd0604903000e 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -824,9 +824,6 @@ def to_datetime( out-of-bounds values will render the cache unusable and may slow down parsing. - .. versionchanged:: 0.25.0 - changed default value from :const:`False` to :const:`True`. - Returns ------- datetime diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py index 0338cb018049b..37351049f0f56 100644 --- a/pandas/io/formats/printing.py +++ b/pandas/io/formats/printing.py @@ -312,8 +312,6 @@ def format_object_summary( If False, only break lines when the a line of values gets wider than the display width. - .. versionadded:: 0.25.0 - Returns ------- summary string diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py index ec2ffbcf9682c..8db93f882fefd 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -130,7 +130,6 @@ def read_gbq( package. It also requires the ``google-cloud-bigquery-storage`` and ``fastavro`` packages. - .. versionadded:: 0.25.0 max_results : int, optional If set, limit the maximum number of rows to fetch from the query results. diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index 5f02822b68d6d..f2780d5fa6832 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -549,19 +549,11 @@ def read_json( For all ``orient`` values except ``'table'``, default is True. - .. versionchanged:: 0.25.0 - - Not applicable for ``orient='table'``. - convert_axes : bool, default None Try to convert the axes to the proper dtypes. For all ``orient`` values except ``'table'``, default is True. - .. versionchanged:: 0.25.0 - - Not applicable for ``orient='table'``. - convert_dates : bool or list of str, default True If True then default datelike columns may be converted (depending on keep_default_dates). diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py index 4b2d0d9beea3f..2e320c6cb9b8f 100644 --- a/pandas/io/json/_normalize.py +++ b/pandas/io/json/_normalize.py @@ -66,8 +66,6 @@ def nested_to_record( max_level: int, optional, default: None The max depth to normalize. - .. versionadded:: 0.25.0 - Returns ------- d - dict or list of dicts, matching `ds` @@ -289,8 +287,6 @@ def _json_normalize( Max number of levels(depth of dict) to normalize. if None, normalizes all levels. - .. versionadded:: 0.25.0 - Returns ------- frame : DataFrame diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index d9c2403a19d0c..23a335ec0b965 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -267,7 +267,6 @@ conversion. May produce significant speed-up when parsing duplicate date strings, especially ones with timezone offsets. - .. versionadded:: 0.25.0 iterator : bool, default False Return TextFileReader object for iteration or getting chunks with ``get_chunk()``. diff --git a/pandas/io/spss.py b/pandas/io/spss.py index 32efd6ca1180c..630b78497d32f 100644 --- a/pandas/io/spss.py +++ b/pandas/io/spss.py @@ -24,8 +24,6 @@ def read_spss( """ Load an SPSS file from the file path, returning a DataFrame. - .. versionadded:: 0.25.0 - Parameters ---------- path : str or Path diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index aef1eb5d59e68..c8b217319b91d 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -690,18 +690,12 @@ class PlotAccessor(PandasObject): logx : bool or 'sym', default False Use log scaling or symlog scaling on x axis. - .. versionchanged:: 0.25.0 - logy : bool or 'sym' default False Use log scaling or symlog scaling on y axis. - .. versionchanged:: 0.25.0 - loglog : bool or 'sym', default False Use log scaling or symlog scaling on both x and y axes. - .. versionchanged:: 0.25.0 - xticks : sequence Values to use for the xticks. yticks : sequence