Skip to content

DOC: update versionadded references of 0.22 to 0.23 #18911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/merging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ standard database join operations between DataFrame objects:
.. note::

Support for specifying index levels as the ``on``, ``left_on``, and
``right_on`` parameters was added in version 0.22.0.
``right_on`` parameters was added in version 0.23.0.

The return type will be the same as ``left``. If ``left`` is a ``DataFrame``
and ``right`` is a subclass of DataFrame, the return type will still be
Expand Down
2 changes: 1 addition & 1 deletion doc/source/reshaping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ By default new columns will have ``np.uint8`` dtype. To choose another dtype use

pd.get_dummies(df, dtype=bool).dtypes

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0


.. _reshaping.factorize:
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def rename_categories(self, new_categories, inplace=False):
* callable : a callable that is called on all items in the old
categories and whose return values comprise the new categories.

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

.. warning::

Expand Down
4 changes: 2 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
Notes
-----
Support for specifying index levels as the `on`, `left_on`, and
`right_on` parameters was added in version 0.22.0
`right_on` parameters was added in version 0.23.0

Examples
--------
Expand Down Expand Up @@ -5094,7 +5094,7 @@ def join(self, other, on=None, how='left', lsuffix='', rsuffix='',
of DataFrame objects

Support for specifying index levels as the `on` parameter was added
in version 0.22.0
in version 0.23.0

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
including the index (``index=False``) is only supported when
orient is 'split' or 'table'.

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3785,7 +3785,7 @@ def drop(self, labels, errors='raise'):
level : int or str, optional, default None
Only return values from specified level (for MultiIndex)

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexes/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def to_tuples(self, na_tuple=True):
Returns NA as a tuple if True, ``(nan, nan)``, or just as the NA
value itself if False, ``nan``.

..versionadded:: 0.22.0
..versionadded:: 0.23.0

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/reshape/melt.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def wide_to_long(df, stubnames, i, j, sep="", suffix=r'\d+'):

.. versionadded:: 0.20.0

.. versionchanged:: 0.22.0
.. versionchanged:: 0.23.0
When all suffixes are numeric, they are cast to int64/float64.

Returns
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/reshape/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False,
dtype : dtype, default np.uint8
Data type for new columns. Only a single dtype is allowed.

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
conversion. May produce sigificant speed-up when parsing duplicate date
strings, especially ones with timezone offsets.

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

Returns
-------
Expand Down
4 changes: 2 additions & 2 deletions pandas/io/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
nrows : int, default None
Number of rows to parse

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

na_values : scalar, str, list-like, or dict, default None
Additional strings to recognize as NA/NaN. If dict passed, specific
Expand All @@ -150,7 +150,7 @@
format.
skip_footer : int, default 0

.. deprecated:: 0.22.0
.. deprecated:: 0.23.0
Pass in `skipfooter` instead.
skipfooter : int, default 0
Rows at the end to skip (0-indexed)
Expand Down
4 changes: 2 additions & 2 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def hide_index(self):
"""
Hide any indices from rendering.

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

Returns
-------
Expand All @@ -808,7 +808,7 @@ def hide_columns(self, subset):
"""
Hide columns from rendering.

.. versionadded:: 0.22.0
.. versionadded:: 0.23.0

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def read(self, path, columns=None, **kwargs):

def _validate_write_lt_070(self, df):
# Compatibility shim for pyarrow < 0.7.0
# TODO: Remove in pandas 0.22.0
# TODO: Remove in pandas 0.23.0
from pandas.core.indexes.multi import MultiIndex
if isinstance(df.index, MultiIndex):
msg = (
Expand Down
2 changes: 1 addition & 1 deletion pandas/stats/moments.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def ensure_compat(dispatch, name, arg, func_kw=None, *args, **kwargs):
kwds[k] = value

# TODO: the below is only in place temporary until this module is removed.
kwargs.pop('freq', None) # freq removed in 0.22
kwargs.pop('freq', None) # freq removed in 0.23
# how is a keyword that if not-None should be in kwds
how = kwargs.pop('how', None)
if how is not None:
Expand Down