Skip to content

Commit 86049dd

Browse files
topper-123jreback
authored andcommitted
remove references to v0.19 in docs and code (#27508)
1 parent 1ca62af commit 86049dd

File tree

29 files changed

+2
-120
lines changed

29 files changed

+2
-120
lines changed

doc/source/getting_started/basics.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,8 +2061,6 @@ Convert a subset of columns to a specified type using :meth:`~DataFrame.astype`.
20612061
dft
20622062
dft.dtypes
20632063
2064-
.. versionadded:: 0.19.0
2065-
20662064
Convert certain columns to a specific dtype by passing a dict to :meth:`~DataFrame.astype`.
20672065

20682066
.. ipython:: python

doc/source/user_guide/categorical.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,6 @@ See also the section on :ref:`merge dtypes<merging.dtypes>` for notes about pres
834834
Unioning
835835
~~~~~~~~
836836

837-
.. versionadded:: 0.19.0
838-
839837
If you want to combine categoricals that do not necessarily have the same
840838
categories, the :func:`~pandas.api.types.union_categoricals` function will
841839
combine a list-like of categoricals. The new categories will be the union of

doc/source/user_guide/computation.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,7 @@ For some windowing functions, additional parameters must be specified:
408408
Time-aware rolling
409409
~~~~~~~~~~~~~~~~~~
410410

411-
.. versionadded:: 0.19.0
412-
413-
New in version 0.19.0 are the ability to pass an offset (or convertible) to a ``.rolling()`` method and have it produce
411+
It is possible to pass an offset (or convertible) to a ``.rolling()`` method and have it produce
414412
variable sized windows based on the passed time window. For each time point, this includes all preceding values occurring
415413
within the indicated time delta.
416414

doc/source/user_guide/io.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,6 @@ worth trying.
453453
Specifying categorical dtype
454454
''''''''''''''''''''''''''''
455455

456-
.. versionadded:: 0.19.0
457-
458456
``Categorical`` columns can be parsed directly by specifying ``dtype='category'`` or
459457
``dtype=CategoricalDtype(categories, ordered)``.
460458

@@ -2192,8 +2190,6 @@ With max_level=1 the following snippet normalizes until 1st nesting level of the
21922190
Line delimited json
21932191
'''''''''''''''''''
21942192

2195-
.. versionadded:: 0.19.0
2196-
21972193
pandas is able to read and write line-delimited json files that are common in data processing pipelines
21982194
using Hadoop or Spark.
21992195

@@ -2491,16 +2487,12 @@ Specify values that should be converted to NaN:
24912487
24922488
dfs = pd.read_html(url, na_values=['No Acquirer'])
24932489
2494-
.. versionadded:: 0.19
2495-
24962490
Specify whether to keep the default set of NaN values:
24972491

24982492
.. code-block:: python
24992493
25002494
dfs = pd.read_html(url, keep_default_na=False)
25012495
2502-
.. versionadded:: 0.19
2503-
25042496
Specify converters for columns. This is useful for numerical text data that has
25052497
leading zeros. By default columns that are numerical are cast to numeric
25062498
types and the leading zeros are lost. To avoid this, we can convert these
@@ -2512,8 +2504,6 @@ columns to strings.
25122504
dfs = pd.read_html(url_mcc, match='Telekom Albania', header=0,
25132505
converters={'MNC': str})
25142506
2515-
.. versionadded:: 0.19
2516-
25172507
Use some combination of the above:
25182508

25192509
.. code-block:: python

doc/source/user_guide/merging.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,6 @@ The ``indicator`` argument will also accept string arguments, in which case the
819819
Merge dtypes
820820
~~~~~~~~~~~~
821821

822-
.. versionadded:: 0.19.0
823-
824822
Merging will preserve the dtype of the join keys.
825823

826824
.. ipython:: python
@@ -1386,8 +1384,6 @@ fill/interpolate missing data:
13861384
Merging asof
13871385
~~~~~~~~~~~~
13881386

1389-
.. versionadded:: 0.19.0
1390-
13911387
A :func:`merge_asof` is similar to an ordered left-join except that we match on
13921388
nearest key rather than equal keys. For each row in the ``left`` ``DataFrame``,
13931389
we select the last row in the ``right`` ``DataFrame`` whose ``on`` key is less

doc/source/user_guide/text.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,6 @@ then ``extractall(pat).xs(0, level='match')`` gives the same result as
506506
``Index`` also supports ``.str.extractall``. It returns a ``DataFrame`` which has the
507507
same result as a ``Series.str.extractall`` with a default index (starts from 0).
508508

509-
.. versionadded:: 0.19.0
510-
511509
.. ipython:: python
512510
513511
pd.Index(["a1a2", "b1", "c1"]).str.extractall(two_groups)

doc/source/user_guide/timeseries.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,8 +1921,6 @@ objects:
19211921
Period dtypes
19221922
~~~~~~~~~~~~~
19231923

1924-
.. versionadded:: 0.19.0
1925-
19261924
``PeriodIndex`` has a custom ``period`` dtype. This is a pandas extension
19271925
dtype similar to the :ref:`timezone aware dtype <timeseries.timezone_series>` (``datetime64[ns, tz]``).
19281926

doc/source/user_guide/visualization.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,6 @@ columns:
438438
439439
.. _visualization.box.return:
440440

441-
.. warning::
442-
443-
The default changed from ``'dict'`` to ``'axes'`` in version 0.19.0.
444-
445441
In ``boxplot``, the return type can be controlled by the ``return_type``, keyword. The valid choices are ``{"axes", "dict", "both", None}``.
446442
Faceting, created by ``DataFrame.boxplot`` with the ``by``
447443
keyword, will affect the output type as well:

pandas/core/algorithms.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,6 @@ def duplicated(values, keep="first"):
816816
"""
817817
Return boolean ndarray denoting duplicate values.
818818
819-
.. versionadded:: 0.19.0
820-
821819
Parameters
822820
----------
823821
values : ndarray-like

pandas/core/arrays/categorical.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,6 @@ def astype(self, dtype, copy=True):
521521
By default, astype always returns a newly allocated object.
522522
If copy is set to False and dtype is categorical, the original
523523
object is returned.
524-
525-
.. versionadded:: 0.19.0
526-
527524
"""
528525
if is_categorical_dtype(dtype):
529526
# GH 10696/18593

0 commit comments

Comments
 (0)