diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 89da897f6c529..6ffa903c74150 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -526,4 +526,4 @@ Other ^^^^^ - Bug in :func:`eval` where the ``inplace`` parameter was being incorrectly handled (:issue:`16732`) - Several ``NaT`` method docstrings (e.g. :func:`NaT.ctime`) were incorrect (:issue:`17327`) -- The documentation has had references to versions < v0.16 removed and cleaned up (:issue:`17442`, :issue:`17442` & :issue:`#17404`) +- The documentation has had references to versions < v0.17 removed and cleaned up (:issue:`17442`, :issue:`17442`, :issue:`17404` & :issue:`17504`) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5991ec825c841..dd5d490ea66a8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1479,8 +1479,6 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None, Character recognized as decimal separator. E.g. use ',' for European data - .. versionadded:: 0.16.0 - """ formatter = fmt.CSVFormatter(self, path_or_buf, line_terminator=line_terminator, sep=sep, @@ -2165,8 +2163,6 @@ def _getitem_frame(self, key): def query(self, expr, inplace=False, **kwargs): """Query the columns of a frame with a boolean expression. - .. versionadded:: 0.13 - Parameters ---------- expr : string @@ -2561,8 +2557,6 @@ def assign(self, **kwargs): Assign new columns to a DataFrame, returning a new object (a copy) with all the original columns in addition to the new ones. - .. versionadded:: 0.16.0 - Parameters ---------- kwargs : keyword, value pairs diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8d16b079ba2c8..a71bf7be1bc75 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2348,8 +2348,6 @@ def drop(self, labels, axis=0, level=None, inplace=False, errors='raise'): errors : {'ignore', 'raise'}, default 'raise' If 'ignore', suppress error and existing labels are dropped. - .. versionadded:: 0.16.1 - Returns ------- dropped : type of caller @@ -3070,8 +3068,6 @@ def sample(self, n=None, frac=None, replace=False, weights=None, """ Returns a random sample of items from an axis of object. - .. versionadded:: 0.16.1 - Parameters ---------- n : int, optional @@ -3228,8 +3224,6 @@ def sample(self, n=None, frac=None, replace=False, weights=None, _shared_docs['pipe'] = (""" Apply func(self, \*args, \*\*kwargs) - .. versionadded:: 0.16.2 - Parameters ---------- func : function diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index c8044b14e4e57..baa3ebce6abbc 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -33,8 +33,6 @@ class CategoricalIndex(Index, base.PandasDelegate): Immutable Index implementing an ordered, sliceable set. CategoricalIndex represents a sparsely populated Index with an underlying Categorical. - .. versionadded:: 0.16.1 - Parameters ---------- data : array-like or Categorical, (1-dimensional) diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 5a04c550f4502..4cfb7547e7d0a 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1577,7 +1577,7 @@ def _set_freq(self, value): days_in_month = _field_accessor( 'days_in_month', 'dim', - "The number of days in the month\n\n.. versionadded:: 0.16.0") + "The number of days in the month") daysinmonth = days_in_month is_month_start = _field_accessor( 'is_month_start', diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index b4abba8026b35..7260bc9a8b7a1 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -1110,8 +1110,6 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False, Whether the dummy columns should be sparse or not. Returns SparseDataFrame if `data` is a Series or if all columns are included. Otherwise returns a DataFrame with some SparseBlocks. - - .. versionadded:: 0.16.1 drop_first : bool, default False Whether to get k-1 dummies out of k categorical levels by removing the first level. diff --git a/pandas/core/sparse/series.py b/pandas/core/sparse/series.py index 99aec2dd11569..2aecb9d7c4ffb 100644 --- a/pandas/core/sparse/series.py +++ b/pandas/core/sparse/series.py @@ -732,8 +732,6 @@ def to_coo(self, row_levels=(0, ), column_levels=(1, ), sort_labels=False): (labels) or numbers of the levels. {row_levels, column_levels} must be a partition of the MultiIndex level names (or numbers). - .. versionadded:: 0.16.0 - Parameters ---------- row_levels : tuple/list @@ -784,8 +782,6 @@ def from_coo(cls, A, dense_index=False): """ Create a SparseSeries from a scipy.sparse.coo_matrix. - .. versionadded:: 0.16.0 - Parameters ---------- A : scipy.sparse.coo_matrix diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 48bc2ee05dd68..021f88d1aec00 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -602,8 +602,6 @@ def str_extract(arr, pat, flags=0, expand=None): For each subject string in the Series, extract groups from the first match of regular expression pat. - .. versionadded:: 0.13.0 - Parameters ---------- pat : string @@ -1016,7 +1014,6 @@ def str_split(arr, pat=None, n=None): * If True, return DataFrame/MultiIndex expanding dimensionality. * If False, return Series/Index. - .. versionadded:: 0.16.1 return_type : deprecated, use `expand` Returns @@ -1047,8 +1044,6 @@ def str_rsplit(arr, pat=None, n=None): string, starting at the end of the string and working to the front. Equivalent to :meth:`str.rsplit`. - .. versionadded:: 0.16.2 - Parameters ---------- pat : string, default None