diff --git a/doc/source/development/policies.rst b/doc/source/development/policies.rst index d75262c08dfd6..d079cc59b0ca5 100644 --- a/doc/source/development/policies.rst +++ b/doc/source/development/policies.rst @@ -9,8 +9,6 @@ Policies Version policy ~~~~~~~~~~~~~~ -.. versionchanged:: 1.0.0 - pandas uses a loose variant of semantic versioning (`SemVer`_) to govern deprecations, API compatibility, and version numbering. diff --git a/doc/source/user_guide/boolean.rst b/doc/source/user_guide/boolean.rst index 54c67674b890c..a08a49bc2359c 100644 --- a/doc/source/user_guide/boolean.rst +++ b/doc/source/user_guide/boolean.rst @@ -17,9 +17,6 @@ Nullable Boolean data type BooleanArray is currently experimental. Its API or implementation may change without warning. -.. versionadded:: 1.0.0 - - .. _boolean.indexing: Indexing with NA values diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index a0137e8cf274d..e9cc25fb3086a 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -311,13 +311,6 @@ Selection by label dfl.loc['20130102':'20130104'] -.. warning:: - - .. versionchanged:: 1.0.0 - - pandas will raise a ``KeyError`` if indexing with a list with missing labels. See :ref:`list-like Using loc with - missing keys in a list is Deprecated `. - pandas provides a suite of methods in order to have **purely label based indexing**. This is a strict inclusion based protocol. Every label asked for must be in the index, or a ``KeyError`` will be raised. When slicing, both the start bound **AND** the stop bound are *included*, if present in the index. @@ -622,12 +615,6 @@ For getting *multiple* indexers, using ``.get_indexer``: Indexing with list with missing labels is deprecated ---------------------------------------------------- -.. warning:: - - .. versionchanged:: 1.0.0 - - Using ``.loc`` or ``[]`` with a list with one or more missing labels will no longer reindex, in favor of ``.reindex``. - In prior versions, using ``.loc[list-of-labels]`` would work as long as *at least 1* of the keys was found (otherwise it would raise a ``KeyError``). This behavior was changed and will now raise a ``KeyError`` if at least one label is missing. The recommended alternative is to use ``.reindex()``. diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst index fe732daccb649..ac12c00e935e4 100644 --- a/doc/source/user_guide/integer_na.rst +++ b/doc/source/user_guide/integer_na.rst @@ -11,12 +11,7 @@ Nullable integer data type .. note:: IntegerArray is currently experimental. Its API or implementation may - change without warning. - -.. versionchanged:: 1.0.0 - - Now uses :attr:`pandas.NA` as the missing value rather - than :attr:`numpy.nan`. + change without warning. Uses :attr:`pandas.NA` as the missing value. In :ref:`missing_data`, we saw that pandas primarily uses ``NaN`` to represent missing data. Because ``NaN`` is a float, this forces an array of integers with diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index dd774417fc5f9..91cd3335d9db6 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3634,11 +3634,6 @@ It is often the case that users will insert columns to do temporary computations in Excel and you may not want to read in those columns. ``read_excel`` takes a ``usecols`` keyword to allow you to specify a subset of columns to parse. -.. versionchanged:: 1.0.0 - -Passing in an integer for ``usecols`` will no longer work. Please pass in a list -of ints from 0 to ``usecols`` inclusive instead. - You can specify a comma-delimited set of Excel columns and ranges as a string: .. code-block:: python @@ -3881,8 +3876,6 @@ Similarly, the :func:`~pandas.to_excel` method can write OpenDocument spreadshee Binary Excel (.xlsb) files -------------------------- -.. versionadded:: 1.0.0 - The :func:`~pandas.read_excel` method can also read binary Excel files using the ``pyxlsb`` module. The semantics and features for reading binary Excel files mostly match what can be done for `Excel files`_ using @@ -5419,8 +5412,6 @@ The above example creates a partitioned dataset that may look like: ORC --- -.. versionadded:: 1.0.0 - Similar to the :ref:`parquet ` format, the `ORC Format `__ is a binary columnar serialization for data frames. It is designed to make reading data frames efficient. pandas provides both the reader and the writer for the ORC format, :func:`~pandas.read_orc` and :func:`~pandas.DataFrame.to_orc`. This requires the `pyarrow `__ library. diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst index 979c19f53bf70..467c343f4ad1a 100644 --- a/doc/source/user_guide/missing_data.rst +++ b/doc/source/user_guide/missing_data.rst @@ -753,8 +753,6 @@ Experimental ``NA`` scalar to denote missing values Experimental: the behaviour of ``pd.NA`` can still change without warning. -.. versionadded:: 1.0.0 - Starting from pandas 1.0, an experimental ``pd.NA`` value (singleton) is available to represent scalar missing values. At this moment, it is used in the nullable :doc:`integer `, boolean and diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index b4ae1d27df2b5..f188c08b7bb94 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -11,8 +11,6 @@ Working with text data Text data types --------------- -.. versionadded:: 1.0.0 - There are two ways to store text data in pandas: 1. ``object`` -dtype NumPy array. diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index df2508397ff34..a675e30823c89 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -335,8 +335,6 @@ which can be specified. These are computed from the starting point specified by that was discussed :ref:`above`). The available units are listed on the documentation for :func:`pandas.to_datetime`. -.. versionchanged:: 1.0.0 - Constructing a :class:`Timestamp` or :class:`DatetimeIndex` with an epoch timestamp with the ``tz`` argument specified will raise a ValueError. If you have epochs in wall time in another timezone, you can read the epochs diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst index 147981f29476f..844be80abd1ff 100644 --- a/doc/source/user_guide/visualization.rst +++ b/doc/source/user_guide/visualization.rst @@ -1318,8 +1318,6 @@ with "(right)" in the legend. To turn off the automatic marking, use the Custom formatters for timeseries plots ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionchanged:: 1.0.0 - pandas provides custom formatters for timeseries plots. These change the formatting of the axis labels for dates and times. By default, the custom formatters are applied only to plots created by pandas with diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index 8df73398f1e4a..9b5bd196b40b9 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -372,8 +372,6 @@ class NAType(C_NAType): Experimental: the behaviour of NA can still change without warning. - .. versionadded:: 1.0.0 - The NA singleton is a missing value indicator defined by pandas. It is used in certain new extension dtypes (currently the "string" dtype). """ diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index d6d5957cad8f9..db8c87f0654cd 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -462,8 +462,6 @@ def to_numpy( """ Convert to a NumPy ndarray. - .. versionadded:: 1.0.0 - This is similar to :meth:`numpy.asarray`, but may provide additional control over how the conversion is done. diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 7fd6059697fc5..2dba557eda169 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -43,8 +43,6 @@ class BooleanDtype(BaseMaskedDtype): """ Extension dtype for boolean data. - .. versionadded:: 1.0.0 - .. warning:: BooleanDtype is considered experimental. The implementation and @@ -246,8 +244,6 @@ class BooleanArray(BaseMaskedArray): :func:`pandas.array` specifying ``dtype="boolean"`` (see examples below). - .. versionadded:: 1.0.0 - .. warning:: BooleanArray is considered experimental. The implementation and diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 6b6037ce45daa..02ee2eb4a80ce 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1987,10 +1987,6 @@ def min(self, *, skipna: bool = True, **kwargs): Only ordered `Categoricals` have a minimum! - .. versionchanged:: 1.0.0 - - Returns an NA value on empty arrays - Raises ------ TypeError @@ -1998,7 +1994,7 @@ def min(self, *, skipna: bool = True, **kwargs): Returns ------- - min : the minimum of this `Categorical` + min : the minimum of this `Categorical`, NA value if empty """ nv.validate_minmax_axis(kwargs.get("axis", 0)) nv.validate_min((), kwargs) @@ -2023,10 +2019,6 @@ def max(self, *, skipna: bool = True, **kwargs): Only ordered `Categoricals` have a maximum! - .. versionchanged:: 1.0.0 - - Returns an NA value on empty arrays - Raises ------ TypeError @@ -2034,7 +2026,7 @@ def max(self, *, skipna: bool = True, **kwargs): Returns ------- - max : the maximum of this `Categorical` + max : the maximum of this `Categorical`, NA if array is empty """ nv.validate_minmax_axis(kwargs.get("axis", 0)) nv.validate_max((), kwargs) diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index af0f80eb0c85d..3b35a2b4e47b6 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -16,7 +16,7 @@ class IntegerDtype(NumericDtype): An ExtensionDtype to hold a single size & kind of integer dtype. These specific implementations are subclasses of the non-public - IntegerDtype. For example we have Int8Dtype to represent signed int 8s. + IntegerDtype. For example, we have Int8Dtype to represent signed int 8s. The attributes name & type are set when these subclasses are created. """ @@ -63,10 +63,7 @@ class IntegerArray(NumericArray): """ Array of integer (optional missing) values. - .. versionchanged:: 1.0.0 - - Now uses :attr:`pandas.NA` as the missing value rather - than :attr:`numpy.nan`. + Uses :attr:`pandas.NA` as the missing value. .. warning:: @@ -141,10 +138,7 @@ class IntegerArray(NumericArray): _dtype_docstring = """ An ExtensionDtype for {dtype} integer data. -.. versionchanged:: 1.0.0 - - Now uses :attr:`pandas.NA` as its missing value, - rather than :attr:`numpy.nan`. +Uses :attr:`pandas.NA` as its missing value, rather than :attr:`numpy.nan`. Attributes ---------- diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py index 2248264cab42f..d3a64055f6c10 100644 --- a/pandas/core/arrays/string_.py +++ b/pandas/core/arrays/string_.py @@ -70,8 +70,6 @@ class StringDtype(StorageExtensionDtype): """ Extension dtype for string data. - .. versionadded:: 1.0.0 - .. warning:: StringDtype is considered experimental. The implementation and @@ -233,8 +231,6 @@ class StringArray(BaseStringArray, PandasArray): """ Extension array for string data. - .. versionadded:: 1.0.0 - .. warning:: StringArray is considered experimental. The implementation and diff --git a/pandas/core/base.py b/pandas/core/base.py index 7093f2ceca50b..4465493dd49eb 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -449,15 +449,10 @@ def to_numpy( na_value : Any, optional The value to use for missing values. The default value depends on `dtype` and the type of the array. - - .. versionadded:: 1.0.0 - **kwargs Additional keywords passed through to the ``to_numpy`` method of the underlying array (for extension arrays). - .. versionadded:: 1.0.0 - Returns ------- numpy.ndarray diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 69ba7e0bb0848..8c5f291742b9b 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -128,12 +128,6 @@ def array( For all other cases, NumPy's usual inference rules will be used. - .. versionchanged:: 1.0.0 - - Pandas infers nullable-integer dtype for integer data, - string dtype for string data, and nullable-boolean dtype - for boolean data. - .. versionchanged:: 1.2.0 Pandas now also infers nullable-floating dtype for float-like diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 4a6b95f9a2e11..1f6f507903b37 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1223,12 +1223,8 @@ def to_string( (when number of rows is above `max_rows`). max_colwidth : int, optional Max width to truncate each column in characters. By default, no limit. - - .. versionadded:: 1.0.0 encoding : str, default "utf-8" Set character encoding. - - .. versionadded:: 1.0 %(returns)s See Also -------- @@ -2541,10 +2537,6 @@ def to_stata( String, path object (implementing ``os.PathLike[str]``), or file-like object implementing a binary ``write()`` function. - .. versionchanged:: 1.0.0 - - Previously this was "fname" - convert_dates : dict Dictionary mapping columns containing datetime types to stata internal format to use when writing the dates. Options are 'tc', @@ -2581,10 +2573,6 @@ def to_stata( smaller datasets in format 119 may have unintended consequences, and, as of November 2020, Stata SE cannot read version 119 files. - .. versionchanged:: 1.0.0 - - Added support for formats 118 and 119. - convert_strl : list, optional List of column names to convert to string columns to Stata StrL format. Only available if version is 117. Storing strings in the @@ -4301,9 +4289,6 @@ def query(self, expr: str, *, inplace: bool = False, **kwargs) -> DataFrame | No 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:: 1.0.0 - Expanding functionality of backtick quoting for more than only spaces. - inplace : bool Whether to modify the DataFrame rather than creating a new one. **kwargs @@ -6280,10 +6265,8 @@ def dropna( * 0, or 'index' : Drop rows which contain missing values. * 1, or 'columns' : Drop columns which contain missing value. - .. versionchanged:: 1.0.0 - - Pass tuple or list to drop on multiple axes. - Only a single axis is allowed. + Pass tuple or list to drop on multiple axes. + Only a single axis is allowed. how : {'any', 'all'}, default 'any' Determine if row or column is removed from DataFrame, when we have @@ -6449,8 +6432,6 @@ def drop_duplicates( ignore_index : bool, default ``False`` If ``True``, the resulting axis will be labeled 0, 1, …, n - 1. - .. versionadded:: 1.0.0 - Returns ------- DataFrame or None @@ -6876,9 +6857,6 @@ def sort_index( levels too (in order) after sorting by specified level. ignore_index : bool, default False If True, the resulting axis will be labeled 0, 1, …, n - 1. - - .. versionadded:: 1.0.0 - key : callable, optional If not None, apply the key function to the index values before sorting. This is similar to the `key` argument in the diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 7c2e42ef71d46..8f6ed3c9d849c 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2330,8 +2330,6 @@ def to_json( indent : int, optional Length of whitespace used to indent each record. - .. versionadded:: 1.0.0 - {storage_options} .. versionadded:: 1.2.0 @@ -3184,9 +3182,6 @@ def to_latex( into a main LaTeX document or read from an external file with ``\input{{table.tex}}``. - .. versionchanged:: 1.0.0 - Added caption and label arguments. - .. versionchanged:: 1.2.0 Added position argument, changed meaning of caption argument. @@ -3281,8 +3276,6 @@ def to_latex( which results in ``\caption[short_caption]{{full_caption}}``; if a single string is passed, no short caption will be set. - .. versionadded:: 1.0.0 - .. versionchanged:: 1.2.0 Optionally allow caption to be a tuple ``(full_caption, short_caption)``. @@ -3290,7 +3283,6 @@ def to_latex( The LaTeX label to be placed inside ``\label{{}}`` in the output. This is used with ``\ref{{}}`` in the main ``.tex`` file. - .. versionadded:: 1.0.0 position : str, optional The LaTeX positional argument for tables, to be placed after ``\begin{{}}`` in the output. @@ -4870,9 +4862,6 @@ def sort_values( end. ignore_index : bool, default False If True, the resulting axis will be labeled 0, 1, …, n - 1. - - .. versionadded:: 1.0.0 - key : callable, optional Apply the key function to the values before sorting. This is similar to the `key` argument in the @@ -6507,9 +6496,7 @@ def convert_dtypes( convert_floating: bool_t = True, ) -> NDFrameT: """ - Convert columns to best possible dtypes using dtypes supporting ``pd.NA``. - - .. versionadded:: 1.0.0 + Convert columns to the best possible dtypes using dtypes supporting ``pd.NA``. Parameters ---------- diff --git a/pandas/core/indexers/utils.py b/pandas/core/indexers/utils.py index 90503876ee5d5..0674831aaa6f3 100644 --- a/pandas/core/indexers/utils.py +++ b/pandas/core/indexers/utils.py @@ -431,8 +431,6 @@ def check_array_indexer(array: AnyArrayLike, indexer: Any) -> Any: Non-array indexers (integer, slice, Ellipsis, tuples, ..) are passed through as is. - .. versionadded:: 1.0.0 - Parameters ---------- array : array-like diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 0d0fc4a779120..92cb7b5fd5f47 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -613,11 +613,8 @@ def from_product( level). names : list / sequence of str, optional Names for the levels in the index. - - .. versionchanged:: 1.0.0 - - If not explicitly provided, names will be inferred from the - elements of iterables if an element has a name attribute + If not explicitly provided, names will be inferred from the + elements of iterables if an element has a name attribute. Returns ------- diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index a3068e5c9e4b8..6758ab9cb6814 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -199,10 +199,6 @@ def concat( sort : bool, default False Sort non-concatenation axis if it is not already aligned. - .. versionchanged:: 1.0.0 - - Changed to not sort by default. - copy : bool, default True If False, do not copy data unnecessarily. diff --git a/pandas/core/series.py b/pandas/core/series.py index 1c5a4431b03f2..bd8f2f2413dfe 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1709,8 +1709,6 @@ def to_markdown( """ Print {klass} in Markdown-friendly format. - .. versionadded:: 1.0.0 - Parameters ---------- buf : str, Path or StringIO-like, optional, default None @@ -3407,9 +3405,6 @@ def sort_values( the end. ignore_index : bool, default False If True, the resulting axis will be labeled 0, 1, …, n - 1. - - .. versionadded:: 1.0.0 - key : callable, optional If not None, apply the key function to the series values before sorting. This is similar to the `key` argument in the @@ -3668,9 +3663,6 @@ def sort_index( levels too (in order) after sorting by specified level. ignore_index : bool, default False If True, the resulting axis will be labeled 0, 1, …, n - 1. - - .. versionadded:: 1.0.0 - key : callable, optional If not None, apply the key function to the index values before sorting. This is similar to the `key` argument in the diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index b28a9def8a7ea..970c9998f5f5d 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -322,8 +322,6 @@ def lexsort_indexer( key : Callable, optional Callable key function applied to every element in keys before sorting - .. versionadded:: 1.0.0 - Returns ------- np.ndarray[np.intp] diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 0e45c9a71a5c5..1b020a3d96411 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -456,9 +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`. - .. versionchanged:: 1.0.0 - Changed default of `join` from None to `'left'`. - Returns ------- str, Series or Index diff --git a/pandas/core/window/doc.py b/pandas/core/window/doc.py index b1ff53e9d1a44..2a5cbc04921fa 100644 --- a/pandas/core/window/doc.py +++ b/pandas/core/window/doc.py @@ -54,8 +54,6 @@ def create_section_header(header: str) -> str: or a single value from a Series if ``raw=False``. Can also accept a Numba JIT function with ``engine='numba'`` specified. - .. versionchanged:: 1.0.0 - raw : bool, default False * ``False`` : passes each row or column as a Series to the function. @@ -70,8 +68,6 @@ def create_section_header(header: str) -> str: Only available when ``raw`` is set to ``True``. * ``None`` : Defaults to ``'cython'`` or globally setting ``compute.use_numba`` - .. versionadded:: 1.0.0 - engine_kwargs : dict, default None * For ``'cython'`` engine, there are no accepted ``engine_kwargs`` * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil`` @@ -80,8 +76,6 @@ def create_section_header(header: str) -> str: ``{{'nopython': True, 'nogil': False, 'parallel': False}}`` and will be applied to both the ``func`` and the ``apply`` rolling aggregation. - .. versionadded:: 1.0.0 - args : tuple, default None Positional arguments to be passed into func. diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index a08c26adf2e38..97b3f23d65b44 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -1310,7 +1310,6 @@ def mean(self, numeric_only: bool = False, **kwargs): @doc( template_header, - ".. versionadded:: 1.0.0 \n\n", create_section_header("Parameters"), kwargs_numeric_only, kwargs_scipy, @@ -1329,7 +1328,6 @@ def var(self, ddof: int = 1, numeric_only: bool = False, **kwargs): @doc( template_header, - ".. versionadded:: 1.0.0 \n\n", create_section_header("Parameters"), kwargs_numeric_only, kwargs_scipy, diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 25ba4b697d97b..ecabea1bc324f 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -148,8 +148,6 @@ class Styler(StylerRenderer): If ``na_rep`` is None, no special formatting is applied, and falls back to ``pandas.options.styler.format.na_rep``. - .. versionadded:: 1.0.0 - uuid_len : int, default 5 If ``uuid`` is not specified, the length of the ``uuid`` to randomly generate expressed in hex characters, in range [0, 32]. @@ -2731,15 +2729,9 @@ def background_gradient( vmin : float, optional Minimum data value that corresponds to colormap minimum value. If not specified the minimum value of the data (or gmap) will be used. - - .. versionadded:: 1.0.0 - vmax : float, optional Maximum data value that corresponds to colormap maximum value. If not specified the maximum value of the data (or gmap) will be used. - - .. versionadded:: 1.0.0 - gmap : array-like, optional Gradient map for determining the {name} colors. If not supplied will use the underlying data from rows, columns or frame. If given as an diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index abf5193d67b3a..3482e29fb1a70 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -963,9 +963,6 @@ def format( na_rep : str, optional Representation for missing values. If ``na_rep`` is None, no special formatting is applied. - - .. versionadded:: 1.0.0 - precision : int, optional Floating point precision to use for display purposes, if not determined by the specified ``formatter``. diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py index 8db93f882fefd..d6c73664ab6f2 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -160,8 +160,6 @@ def read_gbq( ``pandas-gbq`` package. And it requires the ``tqdm`` package. Slightly different than ``pandas-gbq``, here the default is ``None``. - .. versionadded:: 1.0.0 - Returns ------- df: DataFrame diff --git a/pandas/io/orc.py b/pandas/io/orc.py index 27a4b2e0cbac4..5336e2a14f66d 100644 --- a/pandas/io/orc.py +++ b/pandas/io/orc.py @@ -43,8 +43,6 @@ def read_orc( """ Load an ORC object from the file path, returning a DataFrame. - .. versionadded:: 1.0.0 - Parameters ---------- path : str, path object, or file-like object diff --git a/pandas/io/pickle.py b/pandas/io/pickle.py index 4fedb74518f20..a9ab925536d11 100644 --- a/pandas/io/pickle.py +++ b/pandas/io/pickle.py @@ -41,9 +41,7 @@ def to_pickle( filepath_or_buffer : str, path object, or file-like object String, path object (implementing ``os.PathLike[str]``), or file-like object implementing a binary ``write()`` function. - - .. versionchanged:: 1.0.0 - Accept URL. URL has to be of S3 or GCS. + Also accepts URL. URL has to be of S3 or GCS. {compression_options} .. versionchanged:: 1.4.0 Zstandard support. @@ -127,9 +125,7 @@ def read_pickle( filepath_or_buffer : str, path object, or file-like object String, path object (implementing ``os.PathLike[str]``), or file-like object implementing a binary ``readlines()`` function. - - .. versionchanged:: 1.0.0 - Accept URL. URL is not limited to S3 and GCS. + Also accepts URL. URL is not limited to S3 and GCS. {decompression_options} diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 155f989eb0634..35ca4e1f6b6c4 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -3496,8 +3496,6 @@ class StataWriterUTF8(StataWriter117): labels and the dataset label. Format 119 is automatically used if the file contains more than 32,767 variables. - .. versionadded:: 1.0.0 - Parameters ---------- fname : path (string), buffer or path object diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index e861a10968af2..51c95808506a8 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -78,9 +78,6 @@ def hist_series( ``plotting.backend``. For instance, 'matplotlib'. Alternatively, to specify the ``plotting.backend`` for the whole session, set ``pd.options.plotting.backend``. - - .. versionadded:: 1.0.0 - legend : bool, default False Whether to show the legend. @@ -191,8 +188,6 @@ def hist_frame( specify the ``plotting.backend`` for the whole session, set ``pd.options.plotting.backend``. - .. versionadded:: 1.0.0 - legend : bool, default False Whether to show the legend. @@ -417,8 +412,6 @@ def hist_frame( ``plotting.backend``. For instance, 'matplotlib'. Alternatively, to specify the ``plotting.backend`` for the whole session, set ``pd.options.plotting.backend``. - - .. versionadded:: 1.0.0 """ @@ -569,9 +562,6 @@ def boxplot_frame_groupby( ``plotting.backend``. For instance, 'matplotlib'. Alternatively, to specify the ``plotting.backend`` for the whole session, set ``pd.options.plotting.backend``. - - .. versionadded:: 1.0.0 - **kwargs All other plotting keyword arguments to be passed to matplotlib's boxplot function. @@ -773,9 +763,6 @@ class PlotAccessor(PandasObject): ``plotting.backend``. For instance, 'matplotlib'. Alternatively, to specify the ``plotting.backend`` for the whole session, set ``pd.options.plotting.backend``. - - .. versionadded:: 1.0.0 - **kwargs Options to pass to matplotlib plotting method.