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

29 files changed

+2
-120
lines changed

doc/source/getting_started/basics.rst

-2
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

-2
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

+1-3
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

-10
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

-4
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

-2
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

-2
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

-4
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

-2
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

-3
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

pandas/core/base.py

-4
Original file line numberDiff line numberDiff line change
@@ -1460,8 +1460,6 @@ def is_monotonic(self):
14601460
Return boolean if values in the object are
14611461
monotonic_increasing.
14621462
1463-
.. versionadded:: 0.19.0
1464-
14651463
Returns
14661464
-------
14671465
bool
@@ -1478,8 +1476,6 @@ def is_monotonic_decreasing(self):
14781476
Return boolean if values in the object are
14791477
monotonic_decreasing.
14801478
1481-
.. versionadded:: 0.19.0
1482-
14831479
Returns
14841480
-------
14851481
bool

pandas/core/computation/ops.py

-2
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@ def _cast_inplace(terms, acceptable_dtypes, dtype):
306306
acceptable_dtypes : list of acceptable numpy.dtype
307307
Will not cast if term's dtype in this list.
308308
309-
.. versionadded:: 0.19.0
310-
311309
dtype : str or numpy.dtype
312310
The dtype to cast to.
313311
"""

pandas/core/dtypes/concat.py

-2
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ def union_categoricals(to_union, sort_categories=False, ignore_order=False):
225225
Combine list-like of Categorical-like, unioning categories. All
226226
categories must have the same dtype.
227227
228-
.. versionadded:: 0.19.0
229-
230228
Parameters
231229
----------
232230
to_union : list-like of Categorical, CategoricalIndex,

pandas/core/frame.py

-8
Original file line numberDiff line numberDiff line change
@@ -2043,9 +2043,6 @@ def to_stata(
20432043
variable_labels : dict
20442044
Dictionary containing columns as keys and variable labels as
20452045
values. Each label must be 80 characters or smaller.
2046-
2047-
.. versionadded:: 0.19.0
2048-
20492046
version : {114, 117}, default 114
20502047
Version to use in the output dta file. Version 114 can be used
20512048
read by Stata 10 and later. Version 117 can be read by Stata 13
@@ -2074,8 +2071,6 @@ def to_stata(
20742071
* Column listed in convert_dates is not in DataFrame
20752072
* Categorical label contains more than 32,000 characters
20762073
2077-
.. versionadded:: 0.19.0
2078-
20792074
See Also
20802075
--------
20812076
read_stata : Import Stata data files.
@@ -2265,9 +2260,6 @@ def to_html(
22652260
border : int
22662261
A ``border=border`` attribute is included in the opening
22672262
`<table>` tag. Default ``pd.options.display.html.border``.
2268-
2269-
.. versionadded:: 0.19.0
2270-
22712263
table_id : str, optional
22722264
A css id is included in the opening `<table>` tag if specified.
22732265

pandas/core/generic.py

-8
Original file line numberDiff line numberDiff line change
@@ -2328,8 +2328,6 @@ def to_json(
23282328
throw ValueError if incorrect 'orient' since others are not list
23292329
like.
23302330
2331-
.. versionadded:: 0.19.0
2332-
23332331
compression : {'infer', 'gzip', 'bz2', 'zip', 'xz', None}
23342332
23352333
A string representing the compression to use in the output file,
@@ -7078,8 +7076,6 @@ def asof(self, where, subset=None):
70787076
In case of a :class:`~pandas.DataFrame`, the last row without NaN
70797077
considering only the subset of columns (if not `None`)
70807078
7081-
.. versionadded:: 0.19.0 For DataFrame
7082-
70837079
If there is no good value, NaN is returned for a Series or
70847080
a Series of NaN values for a DataFrame
70857081
@@ -8197,14 +8193,10 @@ def resample(
81978193
For a DataFrame, column to use instead of index for resampling.
81988194
Column must be datetime-like.
81998195
8200-
.. versionadded:: 0.19.0
8201-
82028196
level : str or int, optional
82038197
For a MultiIndex, level (name or number) to use for
82048198
resampling. `level` must be datetime-like.
82058199
8206-
.. versionadded:: 0.19.0
8207-
82088200
Returns
82098201
-------
82108202
Resampler object

pandas/core/indexes/base.py

-4
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,6 @@ def view(self, cls=None):
788788
satisfied, the original data is used to create a new Index
789789
or the original Index is returned.
790790
791-
.. versionadded:: 0.19.0
792-
793791
Returns
794792
-------
795793
Index
@@ -3993,8 +3991,6 @@ def memory_usage(self, deep=False):
39933991
entries are from self where cond is True and otherwise are from
39943992
other.
39953993
3996-
.. versionadded:: 0.19.0
3997-
39983994
Parameters
39993995
----------
40003996
cond : boolean array-like with the same length as self

pandas/core/reshape/merge.py

-16
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ def merge_ordered(
217217
* outer: use union of keys from both frames (SQL: full outer join)
218218
* inner: use intersection of keys from both frames (SQL: inner join)
219219
220-
.. versionadded:: 0.19.0
221-
222220
Returns
223221
-------
224222
merged : DataFrame
@@ -328,8 +326,6 @@ def merge_asof(
328326
329327
Optionally match on equivalent keys with 'by' before searching with 'on'.
330328
331-
.. versionadded:: 0.19.0
332-
333329
Parameters
334330
----------
335331
left : DataFrame
@@ -345,26 +341,14 @@ def merge_asof(
345341
Field name to join on in right DataFrame.
346342
left_index : boolean
347343
Use the index of the left DataFrame as the join key.
348-
349-
.. versionadded:: 0.19.2
350-
351344
right_index : boolean
352345
Use the index of the right DataFrame as the join key.
353-
354-
.. versionadded:: 0.19.2
355-
356346
by : column name or list of column names
357347
Match on these columns before performing merge operation.
358348
left_by : column name
359349
Field names to match on in the left DataFrame.
360-
361-
.. versionadded:: 0.19.2
362-
363350
right_by : column name
364351
Field names to match on in the right DataFrame.
365-
366-
.. versionadded:: 0.19.2
367-
368352
suffixes : 2-length sequence (tuple, list, ...)
369353
Suffix to apply to overlapping column names in the left and right
370354
side, respectively.

pandas/core/series.py

-3
Original file line numberDiff line numberDiff line change
@@ -2700,9 +2700,6 @@ def append(self, to_append, ignore_index=False, verify_integrity=False):
27002700
Series to append with self.
27012701
ignore_index : bool, default False
27022702
If True, do not use the index labels.
2703-
2704-
.. versionadded:: 0.19.0
2705-
27062703
verify_integrity : bool, default False
27072704
If True, raise Exception on creating index with duplicates.
27082705

pandas/core/sorting.py

-2
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ def safe_sort(values, labels=None, na_sentinel=-1, assume_unique=False, verify=T
399399
``values`` should be unique if ``labels`` is not None.
400400
Safe for use with mixed types (int, str), orders ints before strs.
401401
402-
.. versionadded:: 0.19.0
403-
404402
Parameters
405403
----------
406404
values : list-like

pandas/core/tools/numeric.py

-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ def to_numeric(arg, errors="raise", downcast=None):
5959
checked satisfy that specification, no downcasting will be
6060
performed on the data.
6161
62-
.. versionadded:: 0.19.0
63-
6462
Returns
6563
-------
6664
ret : numeric if parsing succeeded.

pandas/core/util/hashing.py

-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ def hash_pandas_object(
6060
"""
6161
Return a data hash of the Index/Series/DataFrame
6262
63-
.. versionadded:: 0.19.2
64-
6563
Parameters
6664
----------
6765
index : boolean, default True
@@ -245,8 +243,6 @@ def hash_array(vals, encoding="utf8", hash_key=None, categorize=True):
245243
"""
246244
Given a 1d array, return an array of deterministic integers.
247245
248-
.. versionadded:: 0.19.2
249-
250246
Parameters
251247
----------
252248
vals : ndarray, Categorical

pandas/core/window.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,7 @@ class Window(_Window):
485485
486486
If its an offset then this will be the time period of each window. Each
487487
window will be a variable sized based on the observations included in
488-
the time-period. This is only valid for datetimelike indexes. This is
489-
new in 0.19.0
488+
the time-period. This is only valid for datetimelike indexes.
490489
min_periods : int, default None
491490
Minimum number of observations in window required to have a value
492491
(otherwise result is NA). For a window that is specified by an offset,

pandas/io/excel/_base.py

-6
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,8 @@
120120
content.
121121
true_values : list, default None
122122
Values to consider as True.
123-
124-
.. versionadded:: 0.19.0
125-
126123
false_values : list, default None
127124
Values to consider as False.
128-
129-
.. versionadded:: 0.19.0
130-
131125
skiprows : list-like
132126
Rows to skip at the beginning (0-indexed).
133127
nrows : int, default None

pandas/io/formats/format.py

-2
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,6 @@ def to_html(
846846
border : int
847847
A ``border=border`` attribute is included in the opening
848848
``<table>`` tag. Default ``pd.options.display.html.border``.
849-
850-
.. versionadded:: 0.19.0
851849
"""
852850
from pandas.io.formats.html import HTMLFormatter, NotebookFormatter
853851

0 commit comments

Comments
 (0)