From d224d0762ab927bc647da16543073ecbc6a2e1db Mon Sep 17 00:00:00 2001 From: Sparkle Russell-Puleri Date: Sat, 28 Sep 2019 00:39:08 -0700 Subject: [PATCH] DOC: fix punctuation in Timestamp/Timedelta docstrings (#28053) --- pandas/_libs/tslibs/nattype.pyx | 8 ++++---- pandas/_libs/tslibs/timedeltas.pyx | 8 ++++---- pandas/_libs/tslibs/timestamps.pyx | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 8a5fee97de8e43..328fc26e4fef6c 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -551,7 +551,7 @@ class NaTType(_NaT): """) round = _make_nat_func('round', # noqa:E128 """ - Round the Timestamp to the specified resolution + Round the Timestamp to the specified resolution. Parameters ---------- @@ -589,7 +589,7 @@ default 'raise' """) floor = _make_nat_func('floor', # noqa:E128 """ - return a new Timestamp floored to this resolution + return a new Timestamp floored to this resolution. Parameters ---------- @@ -623,7 +623,7 @@ default 'raise' """) ceil = _make_nat_func('ceil', # noqa:E128 """ - return a new Timestamp ceiled to this resolution + return a new Timestamp ceiled to this resolution. Parameters ---------- @@ -735,7 +735,7 @@ default 'raise' """) replace = _make_nat_func('replace', # noqa:E128 """ - implements datetime.replace, handles nanoseconds + implements datetime.replace, handles nanoseconds. Parameters ---------- diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 831e65d5573e9c..b232042c70eacd 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1155,7 +1155,7 @@ cdef class _Timedelta(timedelta): """ Format Timedelta as ISO 8601 Duration like ``P[n]Y[n]M[n]DT[n]H[n]M[n]S``, where the ``[n]`` s are replaced by the - values. See https://en.wikipedia.org/wiki/ISO_8601#Durations + values. See https://en.wikipedia.org/wiki/ISO_8601#Durations. .. versionadded:: 0.20.0 @@ -1319,7 +1319,7 @@ class Timedelta(_Timedelta): def round(self, freq): """ - Round the Timedelta to the specified resolution + Round the Timedelta to the specified resolution. Parameters ---------- @@ -1337,7 +1337,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 ---------- @@ -1347,7 +1347,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/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index c8c6efda30fae2..6ca39d83afd25f 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -441,7 +441,7 @@ class Timestamp(_Timestamp): def round(self, freq, ambiguous='raise', nonexistent='raise'): """ - Round the Timestamp to the specified resolution + Round the Timestamp to the specified resolution. Parameters ---------- @@ -483,7 +483,7 @@ default 'raise' def floor(self, freq, ambiguous='raise', nonexistent='raise'): """ - return a new Timestamp floored to this resolution + return a new Timestamp floored to this resolution. Parameters ---------- @@ -519,7 +519,7 @@ default 'raise' def ceil(self, freq, ambiguous='raise', nonexistent='raise'): """ - return a new Timestamp ceiled to this resolution + return a new Timestamp ceiled to this resolution. Parameters ---------- @@ -556,7 +556,7 @@ default 'raise' @property def tz(self): """ - Alias for tzinfo + Alias for tzinfo. """ return self.tzinfo @@ -754,7 +754,7 @@ default 'raise' def resolution(self): """ Return resolution describing the smallest difference between two - times that can be represented by Timestamp object_state + times that can be represented by Timestamp object_state. """ # GH#21336, GH#21365 return Timedelta(nanoseconds=1) @@ -893,7 +893,7 @@ default 'raise' hour=None, minute=None, second=None, microsecond=None, nanosecond=None, tzinfo=object, fold=0): """ - implements datetime.replace, handles nanoseconds + implements datetime.replace, handles nanoseconds. Parameters ----------