From 02f040cad679a33a42bbc7779e60f14ef5ac9541 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sun, 13 Oct 2013 20:18:32 +0200 Subject: [PATCH] DOC: Note -> Notes (numpydoc docstring section) --- pandas/core/groupby.py | 8 ++++---- pandas/core/index.py | 12 ++++++------ pandas/core/reshape.py | 4 ++-- pandas/core/strings.py | 4 ++-- pandas/tseries/offsets.py | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index 8938e48eb493b..224fd56c6946d 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -1990,8 +1990,8 @@ def transform(self, func, *args, **kwargs): f : function Function to apply to each subframe - Note - ---- + Notes + ----- Each subframe is endowed the attribute 'name' in case you need to know which group you are working on. @@ -2102,8 +2102,8 @@ def filter(self, func, dropna=True, *args, **kwargs): dropna : Drop groups that do not pass the filter. True by default; if False, groups that evaluate False are filled with NaNs. - Note - ---- + Notes + ----- Each subframe is endowed the attribute 'name' in case you need to know which group you are working on. diff --git a/pandas/core/index.py b/pandas/core/index.py index 98f190360bc33..9d6b8a13608f7 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -71,8 +71,8 @@ class Index(FrozenNDArray): name : object Name to be stored in the index - Note - ---- + Notes + ----- An Index instance can **only** contain hashable objects """ # To hand over control to subclasses @@ -1634,8 +1634,8 @@ class Int64Index(Index): name : object Name to be stored in the index - Note - ---- + Notes + ----- An Index instance can **only** contain hashable objects """ @@ -1731,8 +1731,8 @@ class Float64Index(Index): name : object Name to be stored in the index - Note - ---- + Notes + ----- An Index instance can **only** contain hashable objects """ diff --git a/pandas/core/reshape.py b/pandas/core/reshape.py index 312667930b54d..a608b40847228 100644 --- a/pandas/core/reshape.py +++ b/pandas/core/reshape.py @@ -357,8 +357,8 @@ def pivot_simple(index, columns, values): values : ndarray Values to use for populating new frame's values - Note - ---- + Notes + ----- Obviously, all 3 of the input arguments must have the same length Returns diff --git a/pandas/core/strings.py b/pandas/core/strings.py index a5a9caa4f542d..2c47911318238 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -345,8 +345,8 @@ def str_extract(arr, pat, flags=0): extracted groups : Series (one group) or DataFrame (multiple groups) - Note - ---- + Notes + ----- Compare to the string method match, which returns re.match objects. """ regex = re.compile(pat, flags=flags) diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index e496bf46cf57a..309b6fbb9a51a 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -1354,8 +1354,8 @@ def generate_range(start=None, end=None, periods=None, time_rule : (legacy) name of DateOffset object to be used, optional Corresponds with names expected by tseries.frequencies.get_offset - Note - ---- + Notes + ----- * This method is faster for generating weekdays than dateutil.rrule * At least two of (start, end, periods) must be specified. * If both start and end are specified, the returned dates will