Skip to content

Commit 566bc31

Browse files
topper-123No-Stream
authored andcommitted
removed versionadded <0.17 (pandas-dev#17504)
1 parent 74faf9d commit 566bc31

File tree

8 files changed

+2
-27
lines changed

8 files changed

+2
-27
lines changed

doc/source/whatsnew/v0.21.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -526,4 +526,4 @@ Other
526526
^^^^^
527527
- Bug in :func:`eval` where the ``inplace`` parameter was being incorrectly handled (:issue:`16732`)
528528
- Several ``NaT`` method docstrings (e.g. :func:`NaT.ctime`) were incorrect (:issue:`17327`)
529-
- The documentation has had references to versions < v0.16 removed and cleaned up (:issue:`17442`, :issue:`17442` & :issue:`#17404`)
529+
- The documentation has had references to versions < v0.17 removed and cleaned up (:issue:`17442`, :issue:`17442`, :issue:`17404` & :issue:`17504`)

pandas/core/frame.py

-6
Original file line numberDiff line numberDiff line change
@@ -1479,8 +1479,6 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
14791479
Character recognized as decimal separator. E.g. use ',' for
14801480
European data
14811481
1482-
.. versionadded:: 0.16.0
1483-
14841482
"""
14851483
formatter = fmt.CSVFormatter(self, path_or_buf,
14861484
line_terminator=line_terminator, sep=sep,
@@ -2165,8 +2163,6 @@ def _getitem_frame(self, key):
21652163
def query(self, expr, inplace=False, **kwargs):
21662164
"""Query the columns of a frame with a boolean expression.
21672165
2168-
.. versionadded:: 0.13
2169-
21702166
Parameters
21712167
----------
21722168
expr : string
@@ -2561,8 +2557,6 @@ def assign(self, **kwargs):
25612557
Assign new columns to a DataFrame, returning a new object
25622558
(a copy) with all the original columns in addition to the new ones.
25632559
2564-
.. versionadded:: 0.16.0
2565-
25662560
Parameters
25672561
----------
25682562
kwargs : keyword, value pairs

pandas/core/generic.py

-6
Original file line numberDiff line numberDiff line change
@@ -2348,8 +2348,6 @@ def drop(self, labels, axis=0, level=None, inplace=False, errors='raise'):
23482348
errors : {'ignore', 'raise'}, default 'raise'
23492349
If 'ignore', suppress error and existing labels are dropped.
23502350
2351-
.. versionadded:: 0.16.1
2352-
23532351
Returns
23542352
-------
23552353
dropped : type of caller
@@ -3070,8 +3068,6 @@ def sample(self, n=None, frac=None, replace=False, weights=None,
30703068
"""
30713069
Returns a random sample of items from an axis of object.
30723070
3073-
.. versionadded:: 0.16.1
3074-
30753071
Parameters
30763072
----------
30773073
n : int, optional
@@ -3228,8 +3224,6 @@ def sample(self, n=None, frac=None, replace=False, weights=None,
32283224
_shared_docs['pipe'] = ("""
32293225
Apply func(self, \*args, \*\*kwargs)
32303226
3231-
.. versionadded:: 0.16.2
3232-
32333227
Parameters
32343228
----------
32353229
func : function

pandas/core/indexes/category.py

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ class CategoricalIndex(Index, base.PandasDelegate):
3333
Immutable Index implementing an ordered, sliceable set. CategoricalIndex
3434
represents a sparsely populated Index with an underlying Categorical.
3535
36-
.. versionadded:: 0.16.1
37-
3836
Parameters
3937
----------
4038
data : array-like or Categorical, (1-dimensional)

pandas/core/indexes/datetimes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ def _set_freq(self, value):
15771577
days_in_month = _field_accessor(
15781578
'days_in_month',
15791579
'dim',
1580-
"The number of days in the month\n\n.. versionadded:: 0.16.0")
1580+
"The number of days in the month")
15811581
daysinmonth = days_in_month
15821582
is_month_start = _field_accessor(
15831583
'is_month_start',

pandas/core/reshape/reshape.py

-2
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,6 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False,
11101110
Whether the dummy columns should be sparse or not. Returns
11111111
SparseDataFrame if `data` is a Series or if all columns are included.
11121112
Otherwise returns a DataFrame with some SparseBlocks.
1113-
1114-
.. versionadded:: 0.16.1
11151113
drop_first : bool, default False
11161114
Whether to get k-1 dummies out of k categorical levels by removing the
11171115
first level.

pandas/core/sparse/series.py

-4
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,6 @@ def to_coo(self, row_levels=(0, ), column_levels=(1, ), sort_labels=False):
732732
(labels) or numbers of the levels. {row_levels, column_levels} must be
733733
a partition of the MultiIndex level names (or numbers).
734734
735-
.. versionadded:: 0.16.0
736-
737735
Parameters
738736
----------
739737
row_levels : tuple/list
@@ -784,8 +782,6 @@ def from_coo(cls, A, dense_index=False):
784782
"""
785783
Create a SparseSeries from a scipy.sparse.coo_matrix.
786784
787-
.. versionadded:: 0.16.0
788-
789785
Parameters
790786
----------
791787
A : scipy.sparse.coo_matrix

pandas/core/strings.py

-5
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,6 @@ def str_extract(arr, pat, flags=0, expand=None):
602602
For each subject string in the Series, extract groups from the
603603
first match of regular expression pat.
604604
605-
.. versionadded:: 0.13.0
606-
607605
Parameters
608606
----------
609607
pat : string
@@ -1016,7 +1014,6 @@ def str_split(arr, pat=None, n=None):
10161014
* If True, return DataFrame/MultiIndex expanding dimensionality.
10171015
* If False, return Series/Index.
10181016
1019-
.. versionadded:: 0.16.1
10201017
return_type : deprecated, use `expand`
10211018
10221019
Returns
@@ -1047,8 +1044,6 @@ def str_rsplit(arr, pat=None, n=None):
10471044
string, starting at the end of the string and working to the front.
10481045
Equivalent to :meth:`str.rsplit`.
10491046
1050-
.. versionadded:: 0.16.2
1051-
10521047
Parameters
10531048
----------
10541049
pat : string, default None

0 commit comments

Comments
 (0)