Skip to content

Commit c487676

Browse files
committed
remove last references to v0.18 in docs and code
1 parent 88ccb25 commit c487676

17 files changed

+9
-121
lines changed

doc/source/user_guide/advanced.rst

+3-18
Original file line numberDiff line numberDiff line change
@@ -810,15 +810,10 @@ values **not** in the categories, similarly to how you can reindex **any** panda
810810
Int64Index and RangeIndex
811811
~~~~~~~~~~~~~~~~~~~~~~~~~
812812

813-
.. warning::
814-
815-
Indexing on an integer-based Index with floats has been clarified in 0.18.0, for a summary of the changes, see :ref:`here <whatsnew_0180.float_indexers>`.
816-
817-
:class:`Int64Index` is a fundamental basic index in pandas.
818-
This is an immutable array implementing an ordered, sliceable set.
819-
Prior to 0.18.0, the ``Int64Index`` would provide the default index for all ``NDFrame`` objects.
813+
:class:`Int64Index` is a fundamental basic index in pandas. This is an immutable array
814+
implementing an ordered, sliceable set.
820815

821-
:class:`RangeIndex` is a sub-class of ``Int64Index`` added in version 0.18.0, now providing the default index for all ``NDFrame`` objects.
816+
:class:`RangeIndex` is a sub-class of ``Int64Index`` that provides the default index for all ``NDFrame`` objects.
822817
``RangeIndex`` is an optimized version of ``Int64Index`` that can represent a monotonic ordered set. These are analogous to Python `range types <https://docs.python.org/3/library/stdtypes.html#typesseq-range>`__.
823818

824819
.. _indexing.float64index:
@@ -880,16 +875,6 @@ In non-float indexes, slicing using floats will raise a ``TypeError``.
880875
In [1]: pd.Series(range(5))[3.5:4.5]
881876
TypeError: the slice start [3.5] is not a proper indexer for this index type (Int64Index)
882877
883-
.. warning::
884-
885-
Using a scalar float indexer for ``.iloc`` has been removed in 0.18.0, so the following will raise a ``TypeError``:
886-
887-
.. code-block:: ipython
888-
889-
In [3]: pd.Series(range(5)).iloc[3.0]
890-
TypeError: cannot do positional indexing on <class 'pandas.indexes.range.RangeIndex'> with these indexers [3.0] of <type 'float'>
891-
892-
893878
Here is a typical use-case for using this type of indexing. Imagine that you have a somewhat
894879
irregular timedelta-like indexing scheme, but the data is recorded as floats. This could, for
895880
example, be millisecond offsets.

doc/source/user_guide/computation.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -893,10 +893,9 @@ Therefore, there is an assumption that :math:`x_0` is not an ordinary value
893893
but rather an exponentially weighted moment of the infinite series up to that
894894
point.
895895

896-
One must have :math:`0 < \alpha \leq 1`, and while since version 0.18.0
897-
it has been possible to pass :math:`\alpha` directly, it's often easier
898-
to think about either the **span**, **center of mass (com)** or **half-life**
899-
of an EW moment:
896+
One must have :math:`0 < \alpha \leq 1`, and while it is possible to pass
897+
:math:`\alpha` directly, it's often easier to think about either the
898+
**span**, **center of mass (com)** or **half-life** of an EW moment:
900899

901900
.. math::
902901

doc/source/user_guide/enhancingperf.rst

-2
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,6 @@ new or modified columns is returned and the original frame is unchanged.
628628
df.eval('e = a - c', inplace=False)
629629
df
630630
631-
.. versionadded:: 0.18.0
632-
633631
As a convenience, multiple assignments can be performed by using a
634632
multi-line string.
635633

doc/source/user_guide/indexing.rst

+1-9
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ this area.
3636
should be avoided. See :ref:`Returning a View versus Copy
3737
<indexing.view_versus_copy>`.
3838

39-
.. warning::
40-
41-
Indexing on an integer-based Index with floats has been clarified in 0.18.0, for a summary of the changes, see :ref:`here <whatsnew_0180.float_indexers>`.
42-
4339
See the :ref:`MultiIndex / Advanced Indexing <advanced>` for ``MultiIndex`` and more advanced indexing documentation.
4440

4541
See the :ref:`cookbook<cookbook.selection>` for some advanced strategies.
@@ -83,8 +79,6 @@ of multi-axis indexing.
8379
* A ``callable`` function with one argument (the calling Series or DataFrame) and
8480
that returns valid output for indexing (one of the above).
8581

86-
.. versionadded:: 0.18.1
87-
8882
See more at :ref:`Selection by Position <indexing.integer>`,
8983
:ref:`Advanced Indexing <advanced>` and :ref:`Advanced
9084
Hierarchical <advanced.advanced_hierarchical>`.
@@ -1101,9 +1095,7 @@ This is equivalent to (but faster than) the following.
11011095
df2 = df.copy()
11021096
df.apply(lambda x, y: x.where(x > 0, y), y=df['A'])
11031097
1104-
.. versionadded:: 0.18.1
1105-
1106-
Where can accept a callable as condition and ``other`` arguments. The function must
1098+
``where`` can accept a callable as condition and ``other`` arguments. The function must
11071099
be with one argument (the calling Series or DataFrame) and that returns valid output
11081100
as condition and ``other`` argument.
11091101

doc/source/user_guide/io.rst

-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ compression : {``'infer'``, ``'gzip'``, ``'bz2'``, ``'zip'``, ``'xz'``, ``None``
296296
the ZIP file must contain only one data file to be read in.
297297
Set to ``None`` for no decompression.
298298

299-
.. versionadded:: 0.18.1 support for 'zip' and 'xz' compression.
300299
.. versionchanged:: 0.24.0 'infer' option added and set to default.
301300
thousands : str, default ``None``
302301
Thousands separator.

doc/source/user_guide/reshaping.rst

-2
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,6 @@ not contain any instances of a particular category.
484484
Normalization
485485
~~~~~~~~~~~~~
486486

487-
.. versionadded:: 0.18.1
488-
489487
Frequency tables can also be normalized to show percentages rather than counts
490488
using the ``normalize`` argument:
491489

doc/source/user_guide/style.ipynb

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
"source": [
77
"# Styling\n",
88
"\n",
9-
"*New in version 0.17.1*\n",
10-
"\n",
11-
"<span style=\"color: red\">*Provisional: This is a new feature and still under development. We'll be adding features and possibly making breaking changes in future releases. We'd love to hear your feedback.*</span>\n",
12-
"\n",
139
"This document is written as a Jupyter Notebook, and can be viewed or downloaded [here](http://nbviewer.ipython.org/github/pandas-dev/pandas/blob/master/doc/source/style.ipynb).\n",
1410
"\n",
1511
"You can apply **conditional formatting**, the visual styling of a DataFrame\n",

doc/source/user_guide/text.rst

-12
Original file line numberDiff line numberDiff line change
@@ -364,16 +364,6 @@ Extracting substrings
364364
Extract first match in each subject (extract)
365365
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
366366

367-
.. warning::
368-
369-
In version 0.18.0, ``extract`` gained the ``expand`` argument. When
370-
``expand=False`` it returns a ``Series``, ``Index``, or
371-
``DataFrame``, depending on the subject and regular expression
372-
pattern (same behavior as pre-0.18.0). When ``expand=True`` it
373-
always returns a ``DataFrame``, which is more consistent and less
374-
confusing from the perspective of a user. ``expand=True`` is the
375-
default since version 0.23.0.
376-
377367
The ``extract`` method accepts a `regular expression
378368
<https://docs.python.org/3/library/re.html>`__ with at least one
379369
capture group.
@@ -468,8 +458,6 @@ Extract all matches in each subject (extractall)
468458

469459
.. _text.extractall:
470460

471-
.. versionadded:: 0.18.0
472-
473461
Unlike ``extract`` (which returns only the first match),
474462

475463
.. ipython:: python

doc/source/user_guide/timeseries.rst

+2-9
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,6 @@ We are stopping on the included end-point as it is part of the index:
607607
608608
dft['2013-1-15':'2013-1-15 12:30:00']
609609
610-
.. versionadded:: 0.18.0
611-
612610
``DatetimeIndex`` partial string indexing also works on a ``DataFrame`` with a ``MultiIndex``:
613611

614612
.. ipython:: python
@@ -1514,11 +1512,6 @@ Converting to Python datetimes
15141512
Resampling
15151513
----------
15161514

1517-
.. warning::
1518-
1519-
The interface to ``.resample`` has changed in 0.18.0 to be more groupby-like and hence more flexible.
1520-
See the :ref:`whatsnew docs <whatsnew_0180.breaking.resample>` for a comparison with prior versions.
1521-
15221515
Pandas has a simple, powerful, and efficient functionality for performing
15231516
resampling operations during frequency conversion (e.g., converting secondly
15241517
data into 5-minutely data). This is extremely common in, but not limited to,
@@ -1528,8 +1521,8 @@ financial applications.
15281521
on each of its groups. See some :ref:`cookbook examples <cookbook.resample>` for
15291522
some advanced strategies.
15301523

1531-
Starting in version 0.18.1, the ``resample()`` function can be used directly from
1532-
``DataFrameGroupBy`` objects, see the :ref:`groupby docs <groupby.transform.window_resample>`.
1524+
The ``resample()`` method can be used directly from ``DataFrameGroupBy`` objects,
1525+
see the :ref:`groupby docs <groupby.transform.window_resample>`.
15331526

15341527
.. note::
15351528

doc/source/user_guide/visualization.rst

-15
Original file line numberDiff line numberDiff line change
@@ -1632,18 +1632,3 @@ when plotting a large number of points.
16321632
:suppress:
16331633
16341634
plt.close('all')
1635-
1636-
1637-
.. _rplot:
1638-
1639-
1640-
Trellis plotting interface
1641-
--------------------------
1642-
1643-
.. warning::
1644-
1645-
The ``rplot`` trellis plotting interface has been **removed**. Please use
1646-
external packages like `seaborn <https://github.com/mwaskom/seaborn>`_ for
1647-
similar but more refined functionality and refer to our 0.18.1 documentation
1648-
`here <http://pandas.pydata.org/pandas-docs/version/0.18.1/visualization.html>`__
1649-
for how to convert to using it.

pandas/core/frame.py

-4
Original file line numberDiff line numberDiff line change
@@ -3204,8 +3204,6 @@ def eval(self, expr, inplace=False, **kwargs):
32043204
If the expression contains an assignment, whether to perform the
32053205
operation inplace and mutate the existing DataFrame. Otherwise,
32063206
a new DataFrame is returned.
3207-
3208-
.. versionadded:: 0.18.0.
32093207
kwargs : dict
32103208
See the documentation for :func:`eval` for complete details
32113209
on the keyword arguments accepted by
@@ -6317,8 +6315,6 @@ def unstack(self, level=-1, fill_value=None):
63176315
fill_value : replace NaN with this value if the unstack produces
63186316
missing values
63196317
6320-
.. versionadded:: 0.18.0
6321-
63226318
Returns
63236319
-------
63246320
Series or DataFrame

pandas/core/generic.py

-14
Original file line numberDiff line numberDiff line change
@@ -2986,8 +2986,6 @@ def to_latex(
29862986
defaults to 'utf-8'.
29872987
decimal : str, default '.'
29882988
Character recognized as decimal separator, e.g. ',' in Europe.
2989-
2990-
.. versionadded:: 0.18.0
29912989
multicolumn : bool, default True
29922990
Use \multicolumn to enhance MultiIndex columns.
29932991
The default will be read from the config module.
@@ -6819,14 +6817,6 @@ def replace(
68196817
`scipy.interpolate.BPoly.from_derivatives` which
68206818
replaces 'piecewise_polynomial' interpolation method in
68216819
scipy 0.18.
6822-
6823-
.. versionadded:: 0.18.1
6824-
6825-
Added support for the 'akima' method.
6826-
Added interpolate method 'from_derivatives' which replaces
6827-
'piecewise_polynomial' in SciPy 0.18; backwards-compatible with
6828-
SciPy < 0.18
6829-
68306820
axis : {0 or 'index', 1 or 'columns', None}, default None
68316821
Axis to interpolate along.
68326822
limit : int, optional
@@ -9146,10 +9136,6 @@ def _where(
91469136
If other is callable, it is computed on the %(klass)s and
91479137
should return scalar or %(klass)s. The callable must not
91489138
change input %(klass)s (though pandas doesn't check it).
9149-
9150-
.. versionadded:: 0.18.1
9151-
A callable can be used as other.
9152-
91539139
inplace : bool, default False
91549140
Whether to perform the operation in place on the data.
91559141
axis : int, default None

pandas/core/resample.py

-4
Original file line numberDiff line numberDiff line change
@@ -1139,8 +1139,6 @@ def _wrap_result(self, result):
11391139
class DatetimeIndexResamplerGroupby(_GroupByMixin, DatetimeIndexResampler):
11401140
"""
11411141
Provides a resample of a groupby implementation
1142-
1143-
.. versionadded:: 0.18.1
11441142
"""
11451143

11461144
@property
@@ -1285,8 +1283,6 @@ def _adjust_binner_for_upsample(self, binner):
12851283
class TimedeltaIndexResamplerGroupby(_GroupByMixin, TimedeltaIndexResampler):
12861284
"""
12871285
Provides a resample of a groupby implementation.
1288-
1289-
.. versionadded:: 0.18.1
12901286
"""
12911287

12921288
@property

pandas/core/series.py

-9
Original file line numberDiff line numberDiff line change
@@ -3604,11 +3604,6 @@ def swaplevel(self, i=-2, j=-1, copy=True):
36043604
-------
36053605
Series
36063606
Series with levels swapped in MultiIndex.
3607-
3608-
.. versionchanged:: 0.18.1
3609-
3610-
The indexes ``i`` and ``j`` are now optional, and default to
3611-
the two innermost levels of the index.
36123607
"""
36133608
new_index = self.index.swaplevel(i, j)
36143609
return self._constructor(self._values, index=new_index, copy=copy).__finalize__(
@@ -4459,10 +4454,6 @@ def isin(self, values):
44594454
raise a ``TypeError``. Instead, turn a single string into a
44604455
list of one element.
44614456
4462-
.. versionadded:: 0.18.1
4463-
4464-
Support for values as a set.
4465-
44664457
Returns
44674458
-------
44684459
Series

pandas/core/strings.py

-2
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,6 @@ def str_extractall(arr, pat, flags=0):
914914
Series has exactly one match, extractall(pat).xs(0, level='match')
915915
is the same as extract(pat).
916916
917-
.. versionadded:: 0.18.0
918-
919917
Parameters
920918
----------
921919
pat : str

pandas/core/window.py

-9
Original file line numberDiff line numberDiff line change
@@ -1949,9 +1949,6 @@ def corr(self, other=None, pairwise=None, **kwargs):
19491949
class RollingGroupby(_GroupByMixin, Rolling):
19501950
"""
19511951
Provide a rolling groupby implementation.
1952-
1953-
.. versionadded:: 0.18.1
1954-
19551952
"""
19561953

19571954
@property
@@ -2224,9 +2221,6 @@ def corr(self, other=None, pairwise=None, **kwargs):
22242221
class ExpandingGroupby(_GroupByMixin, Expanding):
22252222
"""
22262223
Provide a expanding groupby implementation.
2227-
2228-
.. versionadded:: 0.18.1
2229-
22302224
"""
22312225

22322226
@property
@@ -2281,9 +2275,6 @@ class EWM(_Rolling):
22812275
alpha : float, optional
22822276
Specify smoothing factor :math:`\alpha` directly,
22832277
:math:`0 < \alpha \leq 1`.
2284-
2285-
.. versionadded:: 0.18.0
2286-
22872278
min_periods : int, default 0
22882279
Minimum number of observations in window required to have a value
22892280
(otherwise result is NA).

pandas/io/parsers.py

-3
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,6 @@
326326
used as the sep. Equivalent to setting ``sep='\\s+'``. If this option
327327
is set to True, nothing should be passed in for the ``delimiter``
328328
parameter.
329-
330-
.. versionadded:: 0.18.1 support for the Python parser.
331-
332329
low_memory : bool, default True
333330
Internally process the file in chunks, resulting in lower memory use
334331
while parsing, but possibly mixed type inference. To ensure no mixed

0 commit comments

Comments
 (0)