Skip to content

Commit 079acdb

Browse files
phoflim-vinicius
authored andcommitted
DOC: Remove versionadded/changed for 1.1.0 (pandas-dev#52905)
* DOC: Remove versionadded/changed for 1.1.0 * Update contributing_codebase.rst * Remove double line break * Fix
1 parent b0530e9 commit 079acdb

39 files changed

+29
-234
lines changed

doc/source/development/contributing_codebase.rst

Lines changed: 2 additions & 2 deletions
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

Lines changed: 0 additions & 6 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 0 additions & 8 deletions
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

0 commit comments

Comments
 (0)