diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 020d1acf0b4ce..9306338029b73 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -545,7 +545,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 ---------- @@ -583,7 +583,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 ---------- @@ -617,7 +617,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 ---------- @@ -729,7 +729,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 d24aafae0967d..52911f9fbcccd 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1150,7 +1150,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 @@ -1314,7 +1314,7 @@ class Timedelta(_Timedelta): def round(self, freq): """ - Round the Timedelta to the specified resolution + Round the Timedelta to the specified resolution. Parameters ---------- @@ -1332,7 +1332,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 ---------- @@ -1342,7 +1342,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 c8c6efda30fae..6ca39d83afd25 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 ----------