Skip to content

Commit 22c7495

Browse files
authored
DOC: Remove 1.2 versionadded and changed (#56544)
1 parent 86488f7 commit 22c7495

File tree

26 files changed

+1
-173
lines changed

26 files changed

+1
-173
lines changed

pandas/_testing/asserters.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ def assert_index_equal(
209209
Whether to compare the order of index entries as well as their values.
210210
If True, both indexes must contain the same elements, in the same order.
211211
If False, both indexes must contain the same elements, but in any order.
212-
213-
.. versionadded:: 1.2.0
214212
rtol : float, default 1e-5
215213
Relative tolerance. Only used when check_exact is False.
216214
atol : float, default 1e-8
@@ -853,9 +851,6 @@ def assert_series_equal(
853851
Whether to check the `freq` attribute on a DatetimeIndex or TimedeltaIndex.
854852
check_flags : bool, default True
855853
Whether to check the `flags` attribute.
856-
857-
.. versionadded:: 1.2.0
858-
859854
rtol : float, default 1e-5
860855
Relative tolerance. Only used when check_exact is False.
861856
atol : float, default 1e-8

pandas/core/arrays/floating.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ class FloatingArray(NumericArray):
5757
"""
5858
Array of floating (optional missing) values.
5959
60-
.. versionadded:: 1.2.0
61-
6260
.. warning::
6361
6462
FloatingArray is currently experimental, and its API or internal

pandas/core/arrays/string_arrow.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ class ArrowStringArray(ObjectStringArrayMixin, ArrowExtensionArray, BaseStringAr
8282
"""
8383
Extension array for string data in a ``pyarrow.ChunkedArray``.
8484
85-
.. versionadded:: 1.2.0
86-
8785
.. warning::
8886
8987
ArrowStringArray is considered experimental. The implementation and

pandas/core/construction.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,6 @@ def array(
127127
``pd.options.mode.string_storage`` if the dtype is not explicitly given.
128128
129129
For all other cases, NumPy's usual inference rules will be used.
130-
131-
.. versionchanged:: 1.2.0
132-
133-
Pandas now also infers nullable-floating dtype for float-like
134-
input data
135-
136130
copy : bool, default True
137131
Whether to copy the data, even if not necessary. Depending
138132
on the type of `data`, creating the new array may require

pandas/core/flags.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class Flags:
1111
"""
1212
Flags that apply to pandas objects.
1313
14-
.. versionadded:: 1.2.0
15-
1614
Parameters
1715
----------
1816
obj : Series or DataFrame

pandas/core/frame.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,6 @@
335335
join; preserve the order of the left keys.
336336
* cross: creates the cartesian product from both frames, preserves the order
337337
of the left keys.
338-
339-
.. versionadded:: 1.2.0
340-
341338
on : label or list
342339
Column or index level names to join on. These must be found in both
343340
DataFrames. If `on` is None and not merging on indexes then this defaults
@@ -2780,8 +2777,6 @@ def to_stata(
27802777
27812778
{storage_options}
27822779
2783-
.. versionadded:: 1.2.0
2784-
27852780
value_labels : dict of dicts
27862781
Dictionary containing columns as keys and dictionaries of column value
27872782
to labels as values. Labels for a single variable must be 32,000
@@ -2994,11 +2989,6 @@ def to_parquet(
29942989
object implementing a binary ``write()`` function. If None, the result is
29952990
returned as bytes. If a string or path, it will be used as Root Directory
29962991
path when writing a partitioned dataset.
2997-
2998-
.. versionchanged:: 1.2.0
2999-
3000-
Previously this was "fname"
3001-
30022992
engine : {{'auto', 'pyarrow', 'fastparquet'}}, default 'auto'
30032993
Parquet library to use. If 'auto', then the option
30042994
``io.parquet.engine`` is used. The default ``io.parquet.engine``
@@ -3021,8 +3011,6 @@ def to_parquet(
30213011
Must be None if path is not a string.
30223012
{storage_options}
30233013
3024-
.. versionadded:: 1.2.0
3025-
30263014
**kwargs
30273015
Additional arguments passed to the parquet library. See
30283016
:ref:`pandas io <io.parquet>` for more details.
@@ -10565,9 +10553,6 @@ def join(
1056510553
of the calling's one.
1056610554
* cross: creates the cartesian product from both frames, preserves the order
1056710555
of the left keys.
10568-
10569-
.. versionadded:: 1.2.0
10570-
1057110556
lsuffix : str, default ''
1057210557
Suffix to use from left frame's overlapping columns.
1057310558
rsuffix : str, default ''

pandas/core/generic.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,8 +2522,6 @@ def to_json(
25222522
25232523
{storage_options}
25242524
2525-
.. versionadded:: 1.2.0
2526-
25272525
mode : str, default 'w' (writing)
25282526
Specify the IO mode for output when supplying a path_or_buf.
25292527
Accepted args are 'w' (writing) and 'a' (append) only.
@@ -3128,8 +3126,6 @@ def to_pickle(
31283126
31293127
{storage_options}
31303128
3131-
.. versionadded:: 1.2.0
3132-
31333129
See Also
31343130
--------
31353131
read_pickle : Load pickled pandas object (or any object) from file.
@@ -3417,9 +3413,6 @@ def to_latex(
34173413
into a main LaTeX document or read from an external file
34183414
with ``\input{{table.tex}}``.
34193415
3420-
.. versionchanged:: 1.2.0
3421-
Added position argument, changed meaning of caption argument.
3422-
34233416
.. versionchanged:: 2.0.0
34243417
Refactored to use the Styler implementation via jinja2 templating.
34253418
@@ -3510,10 +3503,6 @@ def to_latex(
35103503
Tuple (full_caption, short_caption),
35113504
which results in ``\caption[short_caption]{{full_caption}}``;
35123505
if a single string is passed, no short caption will be set.
3513-
3514-
.. versionchanged:: 1.2.0
3515-
Optionally allow caption to be a tuple ``(full_caption, short_caption)``.
3516-
35173506
label : str, optional
35183507
The LaTeX label to be placed inside ``\label{{}}`` in the output.
35193508
This is used with ``\ref{{}}`` in the main ``.tex`` file.
@@ -3522,8 +3511,6 @@ def to_latex(
35223511
The LaTeX positional argument for tables, to be placed after
35233512
``\begin{{}}`` in the output.
35243513
3525-
.. versionadded:: 1.2.0
3526-
35273514
Returns
35283515
-------
35293516
str or None
@@ -3844,11 +3831,6 @@ def to_csv(
38443831
returned as a string. If a non-binary file object is passed, it should
38453832
be opened with `newline=''`, disabling universal newlines. If a binary
38463833
file object is passed, `mode` might need to contain a `'b'`.
3847-
3848-
.. versionchanged:: 1.2.0
3849-
3850-
Support for binary file objects was introduced.
3851-
38523834
sep : str, default ','
38533835
String of length 1. Field delimiter for the output file.
38543836
na_rep : str, default ''
@@ -3889,17 +3871,6 @@ def to_csv(
38893871
38903872
Passing compression options as keys in dict is
38913873
supported for compression modes 'gzip', 'bz2', 'zstd', and 'zip'.
3892-
3893-
.. versionchanged:: 1.2.0
3894-
3895-
Compression is supported for binary file objects.
3896-
3897-
.. versionchanged:: 1.2.0
3898-
3899-
Previous versions forwarded dict entries for 'gzip' to
3900-
`gzip.open` instead of `gzip.GzipFile` which prevented
3901-
setting `mtime`.
3902-
39033874
quoting : optional constant from csv module
39043875
Defaults to csv.QUOTE_MINIMAL. If you have set a `float_format`
39053876
then floats are converted to strings and thus csv.QUOTE_NONNUMERIC
@@ -3935,8 +3906,6 @@ def to_csv(
39353906
39363907
{storage_options}
39373908
3938-
.. versionadded:: 1.2.0
3939-
39403909
Returns
39413910
-------
39423911
None or str
@@ -6941,8 +6910,6 @@ def convert_dtypes(
69416910
Whether, if possible, conversion can be done to floating extension types.
69426911
If `convert_integer` is also True, preference will be give to integer
69436912
dtypes if the floats can be faithfully casted to integers.
6944-
6945-
.. versionadded:: 1.2.0
69466913
dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
69476914
Back-end data type applied to the resultant :class:`DataFrame`
69486915
(still experimental). Behaviour is as follows:
@@ -6986,10 +6953,6 @@ def convert_dtypes(
69866953
appropriate integer extension type. Otherwise, convert to an
69876954
appropriate floating extension type.
69886955
6989-
.. versionchanged:: 1.2
6990-
Starting with pandas 1.2, this method also converts float columns
6991-
to the nullable floating extension type.
6992-
69936956
In the future, as new dtypes are added that support ``pd.NA``, the results
69946957
of this method will change to support those new dtypes.
69956958

pandas/core/groupby/grouper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ class Grouper:
119119
row/column will be dropped. If False, NA values will also be treated as
120120
the key in groups.
121121
122-
.. versionadded:: 1.2.0
123-
124122
Returns
125123
-------
126124
Grouper or pandas.api.typing.TimeGrouper

pandas/core/indexes/base.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5814,9 +5814,6 @@ def sort_values(
58145814
na_position : {'first' or 'last'}, default 'last'
58155815
Argument 'first' puts NaNs at the beginning, 'last' puts NaNs at
58165816
the end.
5817-
5818-
.. versionadded:: 1.2.0
5819-
58205817
key : callable, optional
58215818
If not None, apply the key function to the index values
58225819
before sorting. This is similar to the `key` argument in the

pandas/core/series.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,8 +1920,6 @@ def to_markdown(
19201920
19211921
{storage_options}
19221922
1923-
.. versionadded:: 1.2.0
1924-
19251923
**kwargs
19261924
These parameters will be passed to `tabulate \
19271925
<https://pypi.org/project/tabulate>`_.

pandas/core/window/rolling.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -957,10 +957,6 @@ class Window(BaseWindow):
957957
958958
Default ``None`` (``'right'``).
959959
960-
.. versionchanged:: 1.2.0
961-
962-
The closed parameter with fixed windows is now supported.
963-
964960
step : int, default None
965961
966962
.. versionadded:: 1.5.0

pandas/errors/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,6 @@ class DuplicateLabelError(ValueError):
329329
"""
330330
Error raised when an operation would introduce duplicate labels.
331331
332-
.. versionadded:: 1.2.0
333-
334332
Examples
335333
--------
336334
>>> s = pd.Series([0, 1, 2], index=['a', 'b', 'c']).set_flags(

pandas/io/common.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,8 @@ def _get_filepath_or_buffer(
329329
330330
{storage_options}
331331
332-
.. versionadded:: 1.2.0
333332
334-
..versionchange:: 1.2.0
335-
336-
Returns the dataclass IOArgs.
333+
Returns the dataclass IOArgs.
337334
"""
338335
filepath_or_buffer = stringify_path(filepath_or_buffer)
339336

@@ -711,8 +708,6 @@ def get_handle(
711708
storage_options: StorageOptions = None
712709
Passed to _get_filepath_or_buffer
713710
714-
.. versionchanged:: 1.2.0
715-
716711
Returns the dataclass IOHandles
717712
"""
718713
# Windows does not default to utf-8. Set to utf-8 for a consistent behavior

pandas/io/excel/_base.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@
292292
Rows at the end to skip (0-indexed).
293293
{storage_options}
294294
295-
.. versionadded:: 1.2.0
296-
297295
dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
298296
Back-end data type applied to the resultant :class:`DataFrame`
299297
(still experimental). Behaviour is as follows:
@@ -971,8 +969,6 @@ class ExcelWriter(Generic[_WorkbookT]):
971969
File mode to use (write or append). Append does not work with fsspec URLs.
972970
{storage_options}
973971
974-
.. versionadded:: 1.2.0
975-
976972
if_sheet_exists : {{'error', 'new', 'replace', 'overlay'}}, default 'error'
977973
How to behave when trying to write to a sheet that already
978974
exists (append mode only).

pandas/io/feather_format.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ def to_feather(
5050
df : DataFrame
5151
path : str, path object, or file-like object
5252
{storage_options}
53-
54-
.. versionadded:: 1.2.0
55-
5653
**kwargs :
5754
Additional keywords passed to `pyarrow.feather.write_feather`.
5855
@@ -93,8 +90,6 @@ def read_feather(
9390
Whether to parallelize reading using multiple threads.
9491
{storage_options}
9592
96-
.. versionadded:: 1.2.0
97-
9893
dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
9994
Back-end data type applied to the resultant :class:`DataFrame`
10095
(still experimental). Behaviour is as follows:

pandas/io/formats/excel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,6 @@ def write(
921921
922922
{storage_options}
923923
924-
.. versionadded:: 1.2.0
925924
engine_kwargs: dict, optional
926925
Arbitrary keyword arguments passed to excel engine.
927926
"""

pandas/io/formats/format.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@
132132
floats. This function must return a unicode string and will be
133133
applied only to the non-``NaN`` elements, with ``NaN`` being
134134
handled by ``na_rep``.
135-
136-
.. versionchanged:: 1.2.0
137-
138135
sparsify : bool, optional, default True
139136
Set to False for a DataFrame with a hierarchical index to print
140137
every multiindex key at each row.

pandas/io/formats/style.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ class Styler(StylerRenderer):
161161
uuid_len : int, default 5
162162
If ``uuid`` is not specified, the length of the ``uuid`` to randomly generate
163163
expressed in hex characters, in range [0, 32].
164-
165-
.. versionadded:: 1.2.0
166-
167164
decimal : str, optional
168165
Character used as decimal separator for floats, complex and integers. If not
169166
given uses ``pandas.options.styler.format.decimal``.
@@ -2517,23 +2514,14 @@ def set_table_styles(
25172514
in their respective tuple form. The dict values should be
25182515
a list as specified in the form with CSS selectors and
25192516
props that will be applied to the specified row or column.
2520-
2521-
.. versionchanged:: 1.2.0
2522-
25232517
axis : {0 or 'index', 1 or 'columns', None}, default 0
25242518
Apply to each column (``axis=0`` or ``'index'``), to each row
25252519
(``axis=1`` or ``'columns'``). Only used if `table_styles` is
25262520
dict.
2527-
2528-
.. versionadded:: 1.2.0
2529-
25302521
overwrite : bool, default True
25312522
Styles are replaced if `True`, or extended if `False`. CSS
25322523
rules are preserved so most recent styles set will dominate
25332524
if selectors intersect.
2534-
2535-
.. versionadded:: 1.2.0
2536-
25372525
css_class_names : dict, optional
25382526
A dict of strings used to replace the default CSS classes described below.
25392527

pandas/io/json/_json.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,6 @@ def read_json(
648648
for more information on ``chunksize``.
649649
This can only be passed if `lines=True`.
650650
If this is None, the file will be read into memory all at once.
651-
652-
.. versionchanged:: 1.2
653-
654-
``JsonReader`` is a context manager.
655-
656651
{decompression_options}
657652
658653
.. versionchanged:: 1.4.0 Zstandard support.
@@ -664,8 +659,6 @@ def read_json(
664659
665660
{storage_options}
666661
667-
.. versionadded:: 1.2.0
668-
669662
dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
670663
Back-end data type applied to the resultant :class:`DataFrame`
671664
(still experimental). Behaviour is as follows:

0 commit comments

Comments
 (0)