Skip to content

Commit b80503f

Browse files
committed
Remove ..versionadded before 2.0
1 parent 46ed6b1 commit b80503f

37 files changed

+33
-544
lines changed

pandas/_testing/asserters.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -931,14 +931,10 @@ def assert_series_equal(
931931
assertion message.
932932
check_index : bool, default True
933933
Whether to check index equivalence. If False, then compare only values.
934-
935-
.. versionadded:: 1.3.0
936934
check_like : bool, default False
937935
If True, ignore the order of the index. Must be False if check_index is False.
938936
Note: same labels must be with the same data.
939937
940-
.. versionadded:: 1.5.0
941-
942938
See Also
943939
--------
944940
testing.assert_index_equal : Check that two Indexes are equal.

pandas/core/algorithms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,6 @@ def factorize(
698698
NaN values will be encoded as non-negative integers and will not drop the
699699
NaN from the uniques of the values.
700700
701-
.. versionadded:: 1.5.0
702701
{size_hint}\
703702
704703
Returns

pandas/core/arrays/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,8 +1574,6 @@ def factorize(
15741574
NaN values will be encoded as non-negative integers and will not drop the
15751575
NaN from the uniques of the values.
15761576
1577-
.. versionadded:: 1.5.0
1578-
15791577
Returns
15801578
-------
15811579
codes : ndarray

pandas/core/common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,6 @@ def fill_missing_names(names: Sequence[Hashable | None]) -> list[Hashable]:
639639
"""
640640
If a name is missing then replace it by level_n, where n is the count
641641
642-
.. versionadded:: 1.4.0
643-
644642
Parameters
645643
----------
646644
names : list-like

pandas/core/frame.py

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,9 +1843,7 @@ def from_dict(
18431843
(default). Otherwise if the keys should be rows, pass 'index'.
18441844
If 'tight', assume a dict with keys ['index', 'columns', 'data',
18451845
'index_names', 'column_names'].
1846-
1847-
.. versionadded:: 1.4.0
1848-
'tight' as an allowed value for the ``orient`` argument
1846+
'tight' as an allowed value for the ``orient`` argument
18491847
18501848
dtype : dtype, default None
18511849
Data type to force after DataFrame construction, otherwise infer.
@@ -2084,9 +2082,7 @@ def to_dict(
20842082
- 'records' : list like
20852083
[{column -> value}, ... , {column -> value}]
20862084
- 'index' : dict like {index -> {column -> value}}
2087-
2088-
.. versionadded:: 1.4.0
2089-
'tight' as an allowed value for the ``orient`` argument
2085+
'tight' as an allowed value for the ``orient`` argument
20902086
20912087
into : class, default dict
20922088
The collections.abc.MutableMapping subclass used for all Mappings
@@ -2680,8 +2676,6 @@ def to_stata(
26802676
to labels as values. Labels for a single variable must be 32,000
26812677
characters or smaller.
26822678
2683-
.. versionadded:: 1.4.0
2684-
26852679
Raises
26862680
------
26872681
NotImplementedError
@@ -3088,8 +3082,6 @@ def to_orc(
30883082
"""
30893083
Write a DataFrame to the Optimized Row Columnar (ORC) format.
30903084
3091-
.. versionadded:: 1.5.0
3092-
30933085
Parameters
30943086
----------
30953087
path : str, file-like object or None, default None
@@ -3463,8 +3455,6 @@ def to_xml(
34633455
"""
34643456
Render a DataFrame to an XML document.
34653457
3466-
.. versionadded:: 1.3.0
3467-
34683458
Parameters
34693459
----------
34703460
path_or_buffer : str, path object, file-like object, or None, default None
@@ -6522,16 +6512,11 @@ def reset_index(
65226512
levels are named. If None then the index name is repeated.
65236513
allow_duplicates : bool, optional, default lib.no_default
65246514
Allow duplicate column labels to be created.
6525-
6526-
.. versionadded:: 1.5.0
6527-
65286515
names : int, str or 1-dimensional list, default None
65296516
Using the given string, rename the DataFrame column which contains the
65306517
index data. If the DataFrame has a MultiIndex, this has to be a list
65316518
with length equal to the number of levels.
65326519
6533-
.. versionadded:: 1.5.0
6534-
65356520
Returns
65366521
-------
65376522
DataFrame or None
@@ -7709,8 +7694,6 @@ def value_counts(
77097694
dropna : bool, default True
77107695
Do not include counts of rows that contain NA values.
77117696
7712-
.. versionadded:: 1.3.0
7713-
77147697
Returns
77157698
-------
77167699
Series
@@ -9846,9 +9829,6 @@ def pivot(
98469829
98479830
sort : bool, default True
98489831
Specifies if the result should be sorted.
9849-
9850-
.. versionadded:: 1.3.0
9851-
98529832
**kwargs : dict
98539833
Optional keyword arguments to pass to ``aggfunc``.
98549834
@@ -10202,9 +10182,6 @@ def explode(
1020210182
be str or tuple, and all specified columns their list-like data
1020310183
on same row of the frame must have matching length.
1020410184
10205-
.. versionadded:: 1.3.0
10206-
Multi-column explode
10207-
1020810185
ignore_index : bool, default False
1020910186
If True, the resulting index will be labeled 0, 1, …, n - 1.
1021010187
@@ -10820,8 +10797,6 @@ def apply(
1082010797
``by_row=False`` (backward compatible).
1082110798
If False, the funcs will be passed the whole Series at once.
1082210799
10823-
.. versionadded:: 2.1.0
10824-
1082510800
engine : decorator or {'python', 'numba'}, optional
1082610801
Choose the execution engine to use. If not provided the function
1082710802
will be executed by the regular Python interpreter.
@@ -11236,8 +11211,6 @@ def join(
1123611211
* "many_to_one" or "m:1": check if join keys are unique in right dataset.
1123711212
* "many_to_many" or "m:m": allowed, but does not result in checks.
1123811213
11239-
.. versionadded:: 1.5.0
11240-
1124111214
Returns
1124211215
-------
1124311216
DataFrame
@@ -11626,8 +11599,6 @@ def corr(
1162611599
numeric_only : bool, default False
1162711600
Include only `float`, `int` or `boolean` data.
1162811601
11629-
.. versionadded:: 1.5.0
11630-
1163111602
.. versionchanged:: 2.0.0
1163211603
The default value of ``numeric_only`` is now ``False``.
1163311604
@@ -11753,8 +11724,6 @@ def cov(
1175311724
numeric_only : bool, default False
1175411725
Include only `float`, `int` or `boolean` data.
1175511726
11756-
.. versionadded:: 1.5.0
11757-
1175811727
.. versionchanged:: 2.0.0
1175911728
The default value of ``numeric_only`` is now ``False``.
1176011729
@@ -11893,8 +11862,6 @@ def corrwith(
1189311862
min_periods : int, optional
1189411863
Minimum number of observations needed to have a valid result.
1189511864
11896-
.. versionadded:: 1.5.0
11897-
1189811865
.. versionchanged:: 2.0.0
1189911866
The default value of ``numeric_only`` is now ``False``.
1190011867
@@ -13414,8 +13381,6 @@ def idxmin(
1341413381
numeric_only : bool, default False
1341513382
Include only `float`, `int` or `boolean` data.
1341613383
13417-
.. versionadded:: 1.5.0
13418-
1341913384
Returns
1342013385
-------
1342113386
Series
@@ -13519,8 +13484,6 @@ def idxmax(
1351913484
numeric_only : bool, default False
1352013485
Include only `float`, `int` or `boolean` data.
1352113486
13522-
.. versionadded:: 1.5.0
13523-
1352413487
Returns
1352513488
-------
1352613489
Series

pandas/core/generic.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,6 @@ def _repr_data_resource_(self):
21512151
@doc(
21522152
klass="object",
21532153
storage_options=_shared_docs["storage_options"],
2154-
storage_options_versionadded="1.2.0",
21552154
encoding_parameter="",
21562155
verbose_parameter="",
21572156
extra_parameters=textwrap.dedent(
@@ -2237,8 +2236,6 @@ def to_excel(
22372236
Specifies the one-based bottommost row and rightmost column that
22382237
is to be frozen.
22392238
{storage_options}
2240-
2241-
.. versionadded:: {storage_options_versionadded}
22422239
{extra_parameters}
22432240
See Also
22442241
--------
@@ -2878,8 +2875,6 @@ def to_sql(
28782875
`sqlite3 <https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.rowcount>`__ or
28792876
`SQLAlchemy <https://docs.sqlalchemy.org/en/20/core/connections.html#sqlalchemy.engine.CursorResult.rowcount>`__.
28802877
2881-
.. versionadded:: 1.4.0
2882-
28832878
Raises
28842879
------
28852880
ValueError
@@ -5859,19 +5854,12 @@ def sample(
58595854
If int, array-like, or BitGenerator, seed for random number generator.
58605855
If np.random.RandomState or np.random.Generator, use as given.
58615856
Default ``None`` results in sampling with the current state of np.random.
5862-
5863-
.. versionchanged:: 1.4.0
5864-
5865-
np.random.Generator objects now accepted
5866-
58675857
axis : {0 or 'index', 1 or 'columns', None}, default None
58685858
Axis to sample. Accepts axis number or name. Default is stat axis
58695859
for given data type. For `Series` this parameter is unused and defaults to `None`.
58705860
ignore_index : bool, default False
58715861
If True, the resulting index will be labeled 0, 1, …, n - 1.
58725862
5873-
.. versionadded:: 1.3.0
5874-
58755863
Returns
58765864
-------
58775865
Series or DataFrame
@@ -8967,8 +8955,6 @@ def resample(
89678955
- 'end': `origin` is the last value of the timeseries
89688956
- 'end_day': `origin` is the ceiling midnight of the last day
89698957
8970-
.. versionadded:: 1.3.0
8971-
89728958
.. note::
89738959
89748960
Only takes effect for Tick-frequencies (i.e. fixed frequencies like
@@ -8980,12 +8966,6 @@ def resample(
89808966
Whether to include the group keys in the result index when using
89818967
``.apply()`` on the resampled object.
89828968
8983-
.. versionadded:: 1.5.0
8984-
8985-
Not specifying ``group_keys`` will retain values-dependent behavior
8986-
from pandas 1.4 and earlier (see :ref:`pandas 1.5.0 Release notes
8987-
<whatsnew_150.enhancements.resample_group_keys>` for examples).
8988-
89898969
.. versionchanged:: 2.0.0
89908970
89918971
``group_keys`` now defaults to ``False``.

pandas/core/groupby/generic.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,6 @@ def value_counts(
889889
"""
890890
Return a Series or DataFrame containing counts of unique rows.
891891
892-
.. versionadded:: 1.4.0
893-
894892
Parameters
895893
----------
896894
normalize : bool, default False
@@ -2606,8 +2604,6 @@ def idxmax(
26062604
numeric_only : bool, default False
26072605
Include only `float`, `int` or `boolean` data.
26082606
2609-
.. versionadded:: 1.5.0
2610-
26112607
Returns
26122608
-------
26132609
DataFrame
@@ -2680,8 +2676,6 @@ def idxmin(
26802676
numeric_only : bool, default False
26812677
Include only `float`, `int` or `boolean` data.
26822678
2683-
.. versionadded:: 1.5.0
2684-
26852679
Returns
26862680
-------
26872681
DataFrame
@@ -2752,8 +2746,6 @@ def value_counts(
27522746
"""
27532747
Return a Series or DataFrame containing counts of unique rows.
27542748
2755-
.. versionadded:: 1.4.0
2756-
27572749
Parameters
27582750
----------
27592751
subset : list-like, optional
@@ -3329,8 +3321,6 @@ def corrwith(
33293321
numeric_only : bool, default False
33303322
Include only `float`, `int` or `boolean` data.
33313323
3332-
.. versionadded:: 1.5.0
3333-
33343324
.. versionchanged:: 2.0.0
33353325
The default value of ``numeric_only`` is now ``False``.
33363326

pandas/core/groupby/groupby.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,17 +2195,13 @@ def mean(
21952195
* ``None`` : Defaults to ``'cython'`` or globally setting
21962196
``compute.use_numba``
21972197
2198-
.. versionadded:: 1.4.0
2199-
22002198
engine_kwargs : dict, default None
22012199
* For ``'cython'`` engine, there are no accepted ``engine_kwargs``
22022200
* For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
22032201
and ``parallel`` dictionary keys. The values must either be ``True`` or
22042202
``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
22052203
``{{'nopython': True, 'nogil': False, 'parallel': False}}``
22062204
2207-
.. versionadded:: 1.4.0
2208-
22092205
Returns
22102206
-------
22112207
pandas.Series or pandas.DataFrame
@@ -2397,22 +2393,16 @@ def std(
23972393
* ``None`` : Defaults to ``'cython'`` or globally setting
23982394
``compute.use_numba``
23992395
2400-
.. versionadded:: 1.4.0
2401-
24022396
engine_kwargs : dict, default None
24032397
* For ``'cython'`` engine, there are no accepted ``engine_kwargs``
24042398
* For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
24052399
and ``parallel`` dictionary keys. The values must either be ``True`` or
24062400
``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
24072401
``{{'nopython': True, 'nogil': False, 'parallel': False}}``
24082402
2409-
.. versionadded:: 1.4.0
2410-
24112403
numeric_only : bool, default False
24122404
Include only `float`, `int` or `boolean` data.
24132405
2414-
.. versionadded:: 1.5.0
2415-
24162406
.. versionchanged:: 2.0.0
24172407
24182408
numeric_only now defaults to ``False``.
@@ -2515,22 +2505,16 @@ def var(
25152505
* ``None`` : Defaults to ``'cython'`` or globally setting
25162506
``compute.use_numba``
25172507
2518-
.. versionadded:: 1.4.0
2519-
25202508
engine_kwargs : dict, default None
25212509
* For ``'cython'`` engine, there are no accepted ``engine_kwargs``
25222510
* For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
25232511
and ``parallel`` dictionary keys. The values must either be ``True`` or
25242512
``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
25252513
``{{'nopython': True, 'nogil': False, 'parallel': False}}``
25262514
2527-
.. versionadded:: 1.4.0
2528-
25292515
numeric_only : bool, default False
25302516
Include only `float`, `int` or `boolean` data.
25312517
2532-
.. versionadded:: 1.5.0
2533-
25342518
.. versionchanged:: 2.0.0
25352519
25362520
numeric_only now defaults to ``False``.
@@ -2746,8 +2730,6 @@ def sem(
27462730
numeric_only : bool, default False
27472731
Include only `float`, `int` or `boolean` data.
27482732
2749-
.. versionadded:: 1.5.0
2750-
27512733
.. versionchanged:: 2.0.0
27522734
27532735
numeric_only now defaults to ``False``.
@@ -4400,8 +4382,6 @@ def quantile(
44004382
numeric_only : bool, default False
44014383
Include only `float`, `int` or `boolean` data.
44024384
4403-
.. versionadded:: 1.5.0
4404-
44054385
.. versionchanged:: 2.0.0
44064386
44074387
numeric_only now defaults to ``False``.

0 commit comments

Comments
 (0)