Skip to content

Remove .. versionadded:: 0.18 #27463

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
Jul 20, 2019
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: 0 additions & 2 deletions doc/source/getting_started/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1422,8 +1422,6 @@ The :meth:`~DataFrame.rename` method also provides an ``inplace`` named
parameter that is by default ``False`` and copies the underlying data. Pass
``inplace=True`` to rename the data in place.

.. versionadded:: 0.18.0

Finally, :meth:`~Series.rename` also accepts a scalar or list-like
for altering the ``Series.name`` attribute.

Expand Down
2 changes: 0 additions & 2 deletions doc/source/getting_started/dsintro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ Series can also have a ``name`` attribute:
The Series ``name`` will be assigned automatically in many cases, in particular
when taking 1D slices of DataFrame as you will see below.

.. versionadded:: 0.18.0

You can rename a Series with the :meth:`pandas.Series.rename` method.

.. ipython:: python
Expand Down
6 changes: 1 addition & 5 deletions doc/source/user_guide/enhancingperf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,6 @@ This allows for *formulaic evaluation*. The assignment target can be a
new column name or an existing column name, and it must be a valid Python
identifier.

.. versionadded:: 0.18.0

The ``inplace`` keyword determines whether this assignment will performed
on the original ``DataFrame`` or return a copy with the new column.

Expand Down Expand Up @@ -652,9 +650,7 @@ The equivalent in standard Python would be
df['a'] = 1
df

.. versionadded:: 0.18.0

The ``query`` method gained the ``inplace`` keyword which determines
The ``query`` method has a ``inplace`` keyword which determines
whether the query modifies the original frame.

.. ipython:: python
Expand Down
9 changes: 3 additions & 6 deletions doc/source/user_guide/groupby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -827,13 +827,10 @@ and that the transformed data contains no NAs.

.. _groupby.transform.window_resample:

New syntax to window and resample operations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. versionadded:: 0.18.1
Window and resample operations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Working with the resample, expanding or rolling operations on the groupby
level used to require the application of helper functions. However,
now it is possible to use ``resample()``, ``expanding()`` and
It is possible to use ``resample()``, ``expanding()`` and
``rolling()`` as methods on groupbys.

The example below will apply the ``rolling()`` method on the samples of
Expand Down
4 changes: 0 additions & 4 deletions doc/source/user_guide/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ of multi-axis indexing.
* A ``callable`` function with one argument (the calling Series or DataFrame) and
that returns valid output for indexing (one of the above).

.. versionadded:: 0.18.1

See more at :ref:`Selection by Label <indexing.label>`.

* ``.iloc`` is primarily integer position based (from ``0`` to
Expand Down Expand Up @@ -538,8 +536,6 @@ A list of indexers where any element is out of bounds will raise an
Selection by callable
---------------------

.. versionadded:: 0.18.1

``.loc``, ``.iloc``, and also ``[]`` indexing can accept a ``callable`` as indexer.
The ``callable`` must be a function with one argument (the calling Series or DataFrame) that returns valid output for indexing.

Expand Down
2 changes: 0 additions & 2 deletions doc/source/user_guide/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ delim_whitespace : boolean, default False
If this option is set to ``True``, nothing should be passed in for the
``delimiter`` parameter.

.. versionadded:: 0.18.1 support for the Python parser.

Column and index locations and names
++++++++++++++++++++++++++++++++++++

Expand Down
4 changes: 0 additions & 4 deletions doc/source/user_guide/reshaping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ values will be set to ``NaN``.
df3
df3.unstack()

.. versionadded:: 0.18.0

Alternatively, unstack takes an optional ``fill_value`` argument, for specifying
the value of missing data.

Expand Down Expand Up @@ -630,8 +628,6 @@ the prefix separator. You can specify ``prefix`` and ``prefix_sep`` in 3 ways:
from_dict = pd.get_dummies(df, prefix={'B': 'from_B', 'A': 'from_A'})
from_dict

.. versionadded:: 0.18.0

Sometimes it will be useful to only keep k-1 levels of a categorical
variable to avoid collinearity when feeding the result to statistical models.
You can switch to this mode by turn on ``drop_first``.
Expand Down
2 changes: 0 additions & 2 deletions doc/source/user_guide/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,6 @@ For example if they are separated by a ``'|'``:

String ``Index`` also supports ``get_dummies`` which returns a ``MultiIndex``.

.. versionadded:: 0.18.1

.. ipython:: python

idx = pd.Index(['a', 'a|b', np.nan, 'a|c'])
Expand Down
4 changes: 0 additions & 4 deletions doc/source/user_guide/timeseries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ option, see the Python `datetime documentation`_.
Assembling datetime from multiple DataFrame columns
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 0.18.1

You can also pass a ``DataFrame`` of integer or string columns to assemble into a ``Series`` of ``Timestamps``.

.. ipython:: python
Expand Down Expand Up @@ -1165,8 +1163,6 @@ following subsection.
Custom business hour
~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 0.18.1

The ``CustomBusinessHour`` is a mixture of ``BusinessHour`` and ``CustomBusinessDay`` which
allows you to specify arbitrary holidays. ``CustomBusinessHour`` works as the same
as ``BusinessHour`` except that it skips specified custom holidays.
Expand Down
9 changes: 0 additions & 9 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3087,8 +3087,6 @@ def query(self, expr, inplace=False, **kwargs):
See the documentation for :func:`eval` for complete details
on the keyword arguments accepted by :meth:`DataFrame.query`.

.. versionadded:: 0.18.0

Returns
-------
DataFrame
Expand Down Expand Up @@ -5303,11 +5301,6 @@ def swaplevel(self, i=-2, j=-1, axis=0):
Returns
-------
DataFrame

.. versionchanged:: 0.18.1

The indexes ``i`` and ``j`` are now optional, and default to
the two innermost levels of the index.
"""
result = self.copy()

Expand Down Expand Up @@ -8213,8 +8206,6 @@ def quantile(self, q=0.5, axis=0, numeric_only=True, interpolation="linear"):
* nearest: `i` or `j` whichever is nearest.
* midpoint: (`i` + `j`) / 2.

.. versionadded:: 0.18.0

Returns
-------
Series or DataFrame
Expand Down
9 changes: 0 additions & 9 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,11 +997,6 @@ def swaplevel(self, i=-2, j=-1, axis=0):
Returns
-------
swapped : same type as caller (new object)

.. versionchanged:: 0.18.1

The indexes ``i`` and ``j`` are now optional, and default to
the two innermost levels of the index.
"""
axis = self._get_axis_number(axis)
result = self.copy()
Expand Down Expand Up @@ -9140,10 +9135,6 @@ def _where(
If `cond` is callable, it is computed on the %(klass)s and
should return boolean %(klass)s or array. The callable must
not change input %(klass)s (though pandas doesn't check it).

.. versionadded:: 0.18.1
A callable can be used as cond.

other : scalar, %(klass)s, or callable
Entries where `cond` is %(cond_rev)s are replaced with
corresponding value from `other`.
Expand Down
5 changes: 0 additions & 5 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4904,11 +4904,6 @@ def isin(self, values, level=None):
----------
values : set or list-like
Sought values.

.. versionadded:: 0.18.1

Support for values as a set.

level : str or int, optional
Name or position of the index level to use (if the index is a
`MultiIndex`).
Expand Down
5 changes: 0 additions & 5 deletions pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2197,11 +2197,6 @@ def swaplevel(self, i=-2, j=-1):
MultiIndex
A new MultiIndex.

.. versionchanged:: 0.18.1

The indexes ``i`` and ``j`` are now optional, and default to
the two innermost levels of the index.

See Also
--------
Series.swaplevel : Swap levels i and j in a MultiIndex.
Expand Down
4 changes: 0 additions & 4 deletions pandas/core/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,6 @@ def interpolate(
):
"""
Interpolate values according to different methods.

.. versionadded:: 0.18.1
"""
result = self._upsample(None)
return result.interpolate(
Expand Down Expand Up @@ -1259,8 +1257,6 @@ def _upsample(self, method, limit=None, fill_value=None):
class PeriodIndexResamplerGroupby(_GroupByMixin, PeriodIndexResampler):
"""
Provides a resample of a groupby implementation.

.. versionadded:: 0.18.1
"""

@property
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/reshape/pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,6 @@ def crosstab(
- If passed 'columns' will normalize over each column.
- If margins is `True`, will also normalize margin values.

.. versionadded:: 0.18.1

Returns
-------
DataFrame
Expand Down
3 changes: 0 additions & 3 deletions pandas/core/reshape/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,6 @@ def get_dummies(
drop_first : bool, default False
Whether to get k-1 dummies out of k categorical levels by removing the
first level.

.. versionadded:: 0.18.0

dtype : dtype, default np.uint8
Data type for new columns. Only a single dtype is allowed.

Expand Down
4 changes: 0 additions & 4 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2350,8 +2350,6 @@ def quantile(self, q=0.5, interpolation="linear"):
q : float or array-like, default 0.5 (50% quantile)
0 <= q <= 1, the quantile(s) to compute.
interpolation : {'linear', 'lower', 'higher', 'midpoint', 'nearest'}
.. versionadded:: 0.18.0

This optional parameter specifies the interpolation method to use,
when the desired quantile lies between two data points `i` and `j`:

Expand Down Expand Up @@ -3707,8 +3705,6 @@ def unstack(self, level=-1, fill_value=None):
fill_value : scalar value, default None
Value to use when replacing NaN values.

.. versionadded:: 0.18.0

Returns
-------
DataFrame
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,6 @@ def str_extract(arr, pat, flags=0, expand=True):
If False, return a Series/Index if there is one capture group
or DataFrame if there are multiple capture groups.

.. versionadded:: 0.18.0

Returns
-------
DataFrame or Series or Index
Expand Down
3 changes: 0 additions & 3 deletions pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,6 @@ def to_datetime(
Parameters
----------
arg : integer, float, string, datetime, list, tuple, 1-d array, Series

.. versionadded:: 0.18.1

or DataFrame/dict-like

errors : {'ignore', 'raise', 'coerce'}, default 'raise'
Expand Down
6 changes: 0 additions & 6 deletions pandas/core/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,6 @@ class Window(_Window):
"""
Provide rolling window calculations.

.. versionadded:: 0.18.0

Parameters
----------
window : int, or offset
Expand Down Expand Up @@ -1984,8 +1982,6 @@ class Expanding(_Rolling_and_Expanding):
"""
Provide expanding transformations.

.. versionadded:: 0.18.0

Parameters
----------
min_periods : int, default 1
Expand Down Expand Up @@ -2271,8 +2267,6 @@ class EWM(_Rolling):
r"""
Provide exponential weighted functions.

.. versionadded:: 0.18.0

Parameters
----------
com : float, optional
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@
Display DataFrame dimensions (number of rows by number of columns).
decimal : str, default '.'
Character recognized as decimal separator, e.g. ',' in Europe.

.. versionadded:: 0.18.0
"""

_VALID_JUSTIFY_PARAMETERS = (
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,6 @@ def format(self, formatter, subset=None):
"""
Format the text display value of cells.

.. versionadded:: 0.18.0

Parameters
----------
formatter : str, callable, or dict
Expand Down
3 changes: 0 additions & 3 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@
following extensions: '.gz', '.bz2', '.zip', or '.xz' (otherwise no
decompression). If using 'zip', the ZIP file must contain only one data
file to be read in. Set to None for no decompression.

.. versionadded:: 0.18.1 support for 'zip' and 'xz' compression.

thousands : str, optional
Thousands separator.
decimal : str, default '.'
Expand Down
2 changes: 0 additions & 2 deletions pandas/tseries/offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,6 @@ def onOffset(self, dt):
class CustomBusinessHour(_CustomMixin, BusinessHourMixin, SingleConstructorOffset):
"""
DateOffset subclass representing possibly n custom business days.

.. versionadded:: 0.18.1
"""

_prefix = "CBH"
Expand Down