Skip to content

Commit

Permalink
DOC: fix punctuation in Timestamp/Timedelta docstrings (pandas-dev#28053
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sparalic authored and proost committed Dec 19, 2019
1 parent 378686b commit d224d07
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions pandas/_libs/tslibs/nattype.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
----------
Expand Down Expand Up @@ -735,7 +735,7 @@ default 'raise'
""")
replace = _make_nat_func('replace', # noqa:E128
"""
implements datetime.replace, handles nanoseconds
implements datetime.replace, handles nanoseconds.
Parameters
----------
Expand Down
8 changes: 4 additions & 4 deletions pandas/_libs/tslibs/timedeltas.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
----------
Expand All @@ -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
----------
Expand All @@ -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
----------
Expand Down
12 changes: 6 additions & 6 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
----------
Expand Down Expand Up @@ -556,7 +556,7 @@ default 'raise'
@property
def tz(self):
"""
Alias for tzinfo
Alias for tzinfo.
"""
return self.tzinfo

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
----------
Expand Down

0 comments on commit d224d07

Please sign in to comment.