diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 97197d109eac8..9ff8ba7bb23d2 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -856,8 +856,8 @@ def rank(values, axis=0, method='average', na_option='keep', The method by which tiebreaks are broken during the ranking. na_option : {'keep', 'top'}, default 'keep' The method by which NaNs are placed in the ranking. - - ``keep`` : rank each NaN value with a NaN ranking - - ``top`` : replace each NaN with either +/- inf so that they + - ``keep``: rank each NaN value with a NaN ranking + - ``top``: replace each NaN with either +/- inf so that they there are ranked at the top ascending : boolean, default True Whether or not the elements should be ranked in ascending order. @@ -1473,10 +1473,10 @@ def take(arr, indices, axis=0, allow_fill=False, fill_value=None): allow_fill : bool, default False How to handle negative values in `indices`. - * False : negative values in `indices` indicate positional indices + * False: negative values in `indices` indicate positional indices from the right (the default). This is similar to :func:`numpy.take`. - * True : negative values in `indices` indicate + * True: negative values in `indices` indicate missing values. These values are set to `fill_value`. Any other other negative values raise a ``ValueError``. diff --git a/pandas/core/series.py b/pandas/core/series.py index 892b24f6ee552..621db48b1ad42 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -77,7 +77,7 @@ def remove_na(arr): """Remove null values from array like structure. - .. deprecated :: 0.21.0 + .. deprecated:: 0.21.0 Use s[s.notnull()] instead. """ diff --git a/pandas/io/excel.py b/pandas/io/excel.py index 4f9ae2e27ed8b..1328713736b03 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -1647,15 +1647,15 @@ def _style_to_xlwt(cls, item, firstlevel=True, field_sep=',', for example: hstyle = {"font": {"bold": True}, - "border" : {"top": "thin", - "right": "thin", - "bottom": "thin", - "left": "thin"}, - "align" : {"horiz": "center"}} + "border": {"top": "thin", + "right": "thin", + "bottom": "thin", + "left": "thin"}, + "align": {"horiz": "center"}} will be converted to - font : bold on; \ - border : top thin, right thin, bottom thin, left thin; \ - align : horiz center; + font: bold on; \ + border: top thin, right thin, bottom thin, left thin; \ + align: horiz center; """ if hasattr(item, 'items'): if firstlevel: diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 27f332ca50231..92963126edf01 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -685,12 +685,12 @@ def _parse_errorbars(self, label, err): or return the error DataFrame/dict Error bars can be specified in several ways: - Series : the user provides a pandas.Series object of the same + Series: the user provides a pandas.Series object of the same length as the data - ndarray : provides a np.ndarray of the same length as the data - DataFrame/dict : error values are paired with keys matching the + ndarray: provides a np.ndarray of the same length as the data + DataFrame/dict: error values are paired with keys matching the key in the plotted DataFrame - str : the name of the column within the plotted DataFrame + str: the name of the column within the plotted DataFrame """ if err is None: diff --git a/pandas/plotting/_tools.py b/pandas/plotting/_tools.py index 012a6fd108925..7b18a36738bda 100644 --- a/pandas/plotting/_tools.py +++ b/pandas/plotting/_tools.py @@ -30,10 +30,10 @@ def table(ax, data, rowLabels=None, colLabels=None, **kwargs): Parameters ---------- - `ax` : Matplotlib axes object - `data` : DataFrame or Series + ax : Matplotlib axes object + data : DataFrame or Series data for table contents - `kwargs` : keywords, optional + kwargs : keywords, optional keyword arguments which passed to matplotlib.table.table. If `rowLabels` or `colLabels` is not specified, data index or column name will be used.