From b16f25ba3f16acce5e34a194b0f1f6bd7655e5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4hnke?= Date: Tue, 8 Oct 2019 23:18:59 +0200 Subject: [PATCH] DOC: Fix missing periods and non capitalized summary beginnings (#27977) --- pandas/_libs/tslibs/period.pyx | 6 +++--- pandas/_libs/tslibs/timedeltas.pyx | 4 ++-- pandas/core/arrays/interval.py | 2 +- pandas/io/formats/style.py | 2 +- pandas/plotting/_misc.py | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 697e97e518b13..32dcc86faa7e8 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -1710,7 +1710,7 @@ cdef class _Period: def asfreq(self, freq, how='E'): """ Convert Period to desired frequency, either at the start or end of the - interval + interval. Parameters ---------- @@ -1777,7 +1777,7 @@ cdef class _Period: def to_timestamp(self, freq=None, how='start', tz=None): """ Return the Timestamp representation of the Period at the target - frequency at the specified end (how) of the Period + frequency at the specified end (how) of the Period. Parameters ---------- @@ -2380,7 +2380,7 @@ cdef class _Period: class Period(_Period): """ - Represents a period of time + Represents a period of time. Parameters ---------- diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index f9cb35eb79ae3..3d267b0114695 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1344,7 +1344,7 @@ class Timedelta(_Timedelta): def floor(self, freq): """ - return a new Timedelta floored to this resolution. + Return a new Timedelta floored to this resolution. Parameters ---------- @@ -1355,7 +1355,7 @@ class Timedelta(_Timedelta): def ceil(self, freq): """ - return a new Timedelta ceiled to this resolution. + Return a new Timedelta ceiled to this resolution. Parameters ---------- diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 6dd0b116b3b0d..4039cc91fb554 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -975,7 +975,7 @@ def length(self): @property def mid(self): """ - Return the midpoint of each Interval in the IntervalArray as an Index + Return the midpoint of each Interval in the IntervalArray as an Index. """ try: return 0.5 * (self.left + self.right) diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 9c4746f4d68e3..6bac3fe426f2d 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -849,7 +849,7 @@ def set_uuid(self, uuid): def set_caption(self, caption): """ - Set the caption on a Styler + Set the caption on a Styler. Parameters ---------- diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index 74ce60c6116a9..426ca9632af29 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -8,7 +8,7 @@ def table(ax, data, rowLabels=None, colLabels=None, **kwargs): """ - Helper function to convert DataFrame and Series to matplotlib.table + Helper function to convert DataFrame and Series to matplotlib.table. Parameters ---------- @@ -32,7 +32,7 @@ def table(ax, data, rowLabels=None, colLabels=None, **kwargs): def register(explicit=True): """ - Register Pandas Formatters and Converters with matplotlib + Register Pandas Formatters and Converters with matplotlib. This function modifies the global ``matplotlib.units.registry`` dictionary. Pandas adds custom converters for @@ -54,7 +54,7 @@ def register(explicit=True): def deregister(): """ - Remove pandas' formatters and converters + Remove pandas' formatters and converters. Removes the custom converters added by :func:`register`. This attempts to set the state of the registry back to the state before