Skip to content

Commit b877b43

Browse files
authored
DOC: Remove versionadded/changed for 1.1.0 (#52905)
* DOC: Remove versionadded/changed for 1.1.0 * Update contributing_codebase.rst * Remove double line break * Fix
1 parent dddc017 commit b877b43

39 files changed

+29
-234
lines changed

doc/source/development/contributing_codebase.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,9 @@ directive is used. The sphinx syntax for that is:
959959

960960
.. code-block:: rst
961961
962-
.. versionadded:: 1.1.0
962+
.. versionadded:: 2.1.0
963963
964-
This will put the text *New in version 1.1.0* wherever you put the sphinx
964+
This will put the text *New in version 2.1.0* wherever you put the sphinx
965965
directive. This should also be put in the docstring when adding a new function
966966
or method (`example <https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/frame.py#L1495>`__)
967967
or a new keyword argument (`example <https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/generic.py#L568>`__).

doc/source/user_guide/basics.rst

-6
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,6 @@ of a 1D array of values. It can also be used as a function on regular arrays:
686686
s.value_counts()
687687
pd.value_counts(data)
688688
689-
.. versionadded:: 1.1.0
690-
691689
The :meth:`~DataFrame.value_counts` method can be used to count combinations across multiple columns.
692690
By default all columns are used but a subset can be selected using the ``subset`` argument.
693691

@@ -1812,8 +1810,6 @@ used to sort a pandas object by its index levels.
18121810
18131811
.. _basics.sort_index_key:
18141812

1815-
.. versionadded:: 1.1.0
1816-
18171813
Sorting by index also supports a ``key`` parameter that takes a callable
18181814
function to apply to the index being sorted. For ``MultiIndex`` objects,
18191815
the key is applied per-level to the levels specified by ``level``.
@@ -1867,8 +1863,6 @@ argument:
18671863
18681864
.. _basics.sort_value_key:
18691865

1870-
.. versionadded:: 1.1.0
1871-
18721866
Sorting also supports a ``key`` parameter that takes a callable function
18731867
to apply to the values being sorted.
18741868

doc/source/user_guide/boolean.rst

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Indexing with NA values
2424

2525
pandas allows indexing with ``NA`` values in a boolean array, which are treated as ``False``.
2626

27-
.. versionchanged:: 1.0.2
28-
2927
.. ipython:: python
3028
:okexcept:
3129

doc/source/user_guide/dsintro.rst

-2
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,6 @@ first ``namedtuple``, a ``ValueError`` is raised.
413413
From a list of dataclasses
414414
~~~~~~~~~~~~~~~~~~~~~~~~~~
415415

416-
.. versionadded:: 1.1.0
417-
418416
Data Classes as introduced in `PEP557 <https://www.python.org/dev/peps/pep-0557>`__,
419417
can be passed into the DataFrame constructor.
420418
Passing a list of dataclasses is equivalent to passing a list of dictionaries.

doc/source/user_guide/groupby.rst

-2
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ For example, the groups created by ``groupby()`` below are in the order they app
218218
219219
.. _groupby.dropna:
220220

221-
.. versionadded:: 1.1.0
222-
223221
GroupBy dropna
224222
^^^^^^^^^^^^^^
225223

doc/source/user_guide/indexing.rst

-2
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,6 @@ For getting values with a boolean array:
371371
372372
NA values in a boolean array propagate as ``False``:
373373

374-
.. versionchanged:: 1.0.2
375-
376374
.. ipython:: python
377375
378376
mask = pd.array([True, False, True, False, pd.NA, False], dtype="boolean")

doc/source/user_guide/io.rst

-3
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ compression : {``'infer'``, ``'gzip'``, ``'bz2'``, ``'zip'``, ``'xz'``, ``'zstd'
335335
create a reproducible gzip archive:
336336
``compression={'method': 'gzip', 'compresslevel': 1, 'mtime': 1}``.
337337

338-
.. versionchanged:: 1.1.0 dict option extended to support ``gzip`` and ``bz2``.
339338
.. versionchanged:: 1.2.0 Previous versions forwarded dict entries for 'gzip' to ``gzip.open``.
340339
thousands : str, default ``None``
341340
Thousands separator.
@@ -3890,8 +3889,6 @@ The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets
38903889
# Returns a DataFrame
38913890
pd.read_excel("path_to_file.ods", engine="odf")
38923891
3893-
.. versionadded:: 1.1.0
3894-
38953892
Similarly, the :func:`~pandas.to_excel` method can write OpenDocument spreadsheets
38963893

38973894
.. code-block:: python

doc/source/user_guide/reshaping.rst

-2
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,6 @@ For instance,
298298
299299
When transforming a DataFrame using :func:`~pandas.melt`, the index will be ignored. The original index values can be kept around by setting the ``ignore_index`` parameter to ``False`` (default is ``True``). This will however duplicate them.
300300

301-
.. versionadded:: 1.1.0
302-
303301
.. ipython:: python
304302
305303
index = pd.MultiIndex.from_tuples([("person", "A"), ("person", "B")])

doc/source/user_guide/text.rst

-4
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ Or ``astype`` after the ``Series`` or ``DataFrame`` is created
6262
s.astype("string")
6363
6464
65-
.. versionchanged:: 1.1.0
66-
6765
You can also use :class:`StringDtype`/``"string"`` as the dtype on non-string data and
6866
it will be converted to ``string`` dtype:
6967

@@ -666,8 +664,6 @@ Or whether elements match a pattern:
666664
dtype="string",
667665
).str.match(pattern)
668666
669-
.. versionadded:: 1.1.0
670-
671667
.. ipython:: python
672668
673669
pd.Series(

doc/source/user_guide/timeseries.rst

-8
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,6 @@ Furthermore, if you have a ``Series`` with datetimelike values, then you can
822822
access these properties via the ``.dt`` accessor, as detailed in the section
823823
on :ref:`.dt accessors<basics.dt_accessors>`.
824824

825-
.. versionadded:: 1.1.0
826-
827825
You may obtain the year, week and day components of the ISO year from the ISO 8601 standard:
828826

829827
.. ipython:: python
@@ -1870,8 +1868,6 @@ See :ref:`groupby.iterating-label` or :class:`Resampler.__iter__` for more.
18701868
Use ``origin`` or ``offset`` to adjust the start of the bins
18711869
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18721870

1873-
.. versionadded:: 1.1.0
1874-
18751871
The bins of the grouping are adjusted based on the beginning of the day of the time series starting point. This works well with frequencies that are multiples of a day (like ``30D``) or that divide a day evenly (like ``90s`` or ``1min``). This can create inconsistencies with some frequencies that do not meet this criteria. To change this behavior you can specify a fixed Timestamp with the argument ``origin``.
18761872

18771873
For example:
@@ -2117,8 +2113,6 @@ PeriodIndex partial string indexing
21172113

21182114
PeriodIndex now supports partial string slicing with non-monotonic indexes.
21192115

2120-
.. versionadded:: 1.1.0
2121-
21222116
You can pass in dates and strings to ``Series`` and ``DataFrame`` with ``PeriodIndex``, in the same manner as ``DatetimeIndex``. For details, refer to :ref:`DatetimeIndex Partial String Indexing <timeseries.partialindexing>`.
21232117

21242118
.. ipython:: python
@@ -2491,8 +2485,6 @@ To remove time zone information, use ``tz_localize(None)`` or ``tz_convert(None)
24912485
Fold
24922486
~~~~
24932487

2494-
.. versionadded:: 1.1.0
2495-
24962488
For ambiguous times, pandas supports explicitly specifying the keyword-only fold argument.
24972489
Due to daylight saving time, one wall clock time can occur twice when shifting
24982490
from summer to winter time; fold describes whether the datetime-like corresponds

doc/source/user_guide/visualization.rst

-2
Original file line numberDiff line numberDiff line change
@@ -1209,8 +1209,6 @@ shown by default.
12091209
Controlling the labels
12101210
~~~~~~~~~~~~~~~~~~~~~~
12111211

1212-
.. versionadded:: 1.1.0
1213-
12141212
You may set the ``xlabel`` and ``ylabel`` arguments to give the plot custom labels
12151213
for x and y axis. By default, pandas will pick up index name as xlabel, while leaving
12161214
it empty for ylabel.

doc/source/user_guide/window.rst

-6
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ from present information back to past information. This allows the rolling windo
237237
Custom window rolling
238238
~~~~~~~~~~~~~~~~~~~~~
239239

240-
.. versionadded:: 1.0
241-
242240
In addition to accepting an integer or offset as a ``window`` argument, ``rolling`` also accepts
243241
a ``BaseIndexer`` subclass that allows a user to define a custom method for calculating window bounds.
244242
The ``BaseIndexer`` subclass will need to define a ``get_window_bounds`` method that returns
@@ -358,8 +356,6 @@ the windows are cast as :class:`Series` objects (``raw=False``) or ndarray objec
358356
Numba engine
359357
~~~~~~~~~~~~
360358

361-
.. versionadded:: 1.0
362-
363359
Additionally, :meth:`~Rolling.apply` can leverage `Numba <https://numba.pydata.org/>`__
364360
if installed as an optional dependency. The apply aggregation can be executed using Numba by specifying
365361
``engine='numba'`` and ``engine_kwargs`` arguments (``raw`` must also be set to ``True``).
@@ -593,8 +589,6 @@ and **alpha** to the EW functions:
593589
one half.
594590
* **Alpha** specifies the smoothing factor directly.
595591

596-
.. versionadded:: 1.1.0
597-
598592
You can also specify ``halflife`` in terms of a timedelta convertible unit to specify the amount of
599593
time it takes for an observation to decay to half its value when also specifying a sequence
600594
of ``times``.

pandas/_libs/testing.pyx

-6
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,8 @@ cpdef assert_almost_equal(a, b,
5959
b : object
6060
rtol : float, default 1e-5
6161
Relative tolerance.
62-
63-
.. versionadded:: 1.1.0
6462
atol : float, default 1e-8
6563
Absolute tolerance.
66-
67-
.. versionadded:: 1.1.0
6864
check_dtype: bool, default True
6965
check dtype if both a and b are np.ndarray.
7066
obj : str, default None
@@ -80,8 +76,6 @@ cpdef assert_almost_equal(a, b,
8076
Specify shared index values of objects being compared, internally used
8177
to show appropriate assertion message.
8278
83-
.. versionadded:: 1.1.0
84-
8579
"""
8680
cdef:
8781
double diff = 0.0

pandas/_libs/tslibs/timestamps.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,6 @@ class Timestamp(_Timestamp):
13021302
datetime-like corresponds to the first (0) or the second time (1)
13031303
the wall clock hits the ambiguous time.
13041304
1305-
.. versionadded:: 1.1.0
1306-
13071305
Notes
13081306
-----
13091307
There are essentially three calling conventions for the constructor. The

pandas/_testing/asserters.py

-26
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,8 @@ def assert_almost_equal(
8585
equivalent when doing type checking.
8686
rtol : float, default 1e-5
8787
Relative tolerance.
88-
89-
.. versionadded:: 1.1.0
9088
atol : float, default 1e-8
9189
Absolute tolerance.
92-
93-
.. versionadded:: 1.1.0
9490
"""
9591
if isinstance(left, Index):
9692
assert_index_equal(
@@ -217,12 +213,8 @@ def assert_index_equal(
217213
.. versionadded:: 1.2.0
218214
rtol : float, default 1e-5
219215
Relative tolerance. Only used when check_exact is False.
220-
221-
.. versionadded:: 1.1.0
222216
atol : float, default 1e-8
223217
Absolute tolerance. Only used when check_exact is False.
224-
225-
.. versionadded:: 1.1.0
226218
obj : str, default 'Index'
227219
Specify object name being compared, internally used to show appropriate
228220
assertion message.
@@ -711,12 +703,8 @@ def assert_extension_array_equal(
711703
Whether to compare number exactly.
712704
rtol : float, default 1e-5
713705
Relative tolerance. Only used when check_exact is False.
714-
715-
.. versionadded:: 1.1.0
716706
atol : float, default 1e-8
717707
Absolute tolerance. Only used when check_exact is False.
718-
719-
.. versionadded:: 1.1.0
720708
obj : str, default 'ExtensionArray'
721709
Specify object name being compared, internally used to show appropriate
722710
assertion message.
@@ -842,25 +830,17 @@ def assert_series_equal(
842830
Whether to compare internal Categorical exactly.
843831
check_category_order : bool, default True
844832
Whether to compare category order of internal Categoricals.
845-
846-
.. versionadded:: 1.0.2
847833
check_freq : bool, default True
848834
Whether to check the `freq` attribute on a DatetimeIndex or TimedeltaIndex.
849-
850-
.. versionadded:: 1.1.0
851835
check_flags : bool, default True
852836
Whether to check the `flags` attribute.
853837
854838
.. versionadded:: 1.2.0
855839
856840
rtol : float, default 1e-5
857841
Relative tolerance. Only used when check_exact is False.
858-
859-
.. versionadded:: 1.1.0
860842
atol : float, default 1e-8
861843
Absolute tolerance. Only used when check_exact is False.
862-
863-
.. versionadded:: 1.1.0
864844
obj : str, default 'Series'
865845
Specify object name being compared, internally used to show appropriate
866846
assertion message.
@@ -1111,18 +1091,12 @@ def assert_frame_equal(
11111091
(same as in columns) - same labels must be with the same data.
11121092
check_freq : bool, default True
11131093
Whether to check the `freq` attribute on a DatetimeIndex or TimedeltaIndex.
1114-
1115-
.. versionadded:: 1.1.0
11161094
check_flags : bool, default True
11171095
Whether to check the `flags` attribute.
11181096
rtol : float, default 1e-5
11191097
Relative tolerance. Only used when check_exact is False.
1120-
1121-
.. versionadded:: 1.1.0
11221098
atol : float, default 1e-8
11231099
Absolute tolerance. Only used when check_exact is False.
1124-
1125-
.. versionadded:: 1.1.0
11261100
obj : str, default 'DataFrame'
11271101
Specify object name being compared, internally used to show appropriate
11281102
assertion message.

pandas/core/arrays/datetimes.py

-2
Original file line numberDiff line numberDiff line change
@@ -1350,8 +1350,6 @@ def isocalendar(self) -> DataFrame:
13501350
"""
13511351
Calculate year, week, and day according to the ISO 8601 standard.
13521352
1353-
.. versionadded:: 1.1.0
1354-
13551353
Returns
13561354
-------
13571355
DataFrame

pandas/core/common.py

-5
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,6 @@ def random_state(state: RandomState | None = None):
439439
If receives `None`, returns np.random.
440440
If receives anything else, raises an informative ValueError.
441441
442-
.. versionchanged:: 1.1.0
443-
444-
array-like and BitGenerator object now passed to np.random.RandomState()
445-
as seed
446-
447442
Default None.
448443
449444
Returns

0 commit comments

Comments
 (0)