Skip to content

Commit 0e97074

Browse files
sparalicjorisvandenbossche
authored andcommitted
DOC: fix punctuation in Timestamp/Timedelta docstrings (#28053)
1 parent 49b4b0a commit 0e97074

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

pandas/_libs/tslibs/nattype.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ class NaTType(_NaT):
551551
""")
552552
round = _make_nat_func('round', # noqa:E128
553553
"""
554-
Round the Timestamp to the specified resolution
554+
Round the Timestamp to the specified resolution.
555555
556556
Parameters
557557
----------
@@ -589,7 +589,7 @@ default 'raise'
589589
""")
590590
floor = _make_nat_func('floor', # noqa:E128
591591
"""
592-
return a new Timestamp floored to this resolution
592+
return a new Timestamp floored to this resolution.
593593
594594
Parameters
595595
----------
@@ -623,7 +623,7 @@ default 'raise'
623623
""")
624624
ceil = _make_nat_func('ceil', # noqa:E128
625625
"""
626-
return a new Timestamp ceiled to this resolution
626+
return a new Timestamp ceiled to this resolution.
627627
628628
Parameters
629629
----------
@@ -735,7 +735,7 @@ default 'raise'
735735
""")
736736
replace = _make_nat_func('replace', # noqa:E128
737737
"""
738-
implements datetime.replace, handles nanoseconds
738+
implements datetime.replace, handles nanoseconds.
739739
740740
Parameters
741741
----------

pandas/_libs/tslibs/timedeltas.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ cdef class _Timedelta(timedelta):
11551155
"""
11561156
Format Timedelta as ISO 8601 Duration like
11571157
``P[n]Y[n]M[n]DT[n]H[n]M[n]S``, where the ``[n]`` s are replaced by the
1158-
values. See https://en.wikipedia.org/wiki/ISO_8601#Durations
1158+
values. See https://en.wikipedia.org/wiki/ISO_8601#Durations.
11591159
11601160
.. versionadded:: 0.20.0
11611161
@@ -1319,7 +1319,7 @@ class Timedelta(_Timedelta):
13191319

13201320
def round(self, freq):
13211321
"""
1322-
Round the Timedelta to the specified resolution
1322+
Round the Timedelta to the specified resolution.
13231323
13241324
Parameters
13251325
----------
@@ -1337,7 +1337,7 @@ class Timedelta(_Timedelta):
13371337

13381338
def floor(self, freq):
13391339
"""
1340-
return a new Timedelta floored to this resolution
1340+
return a new Timedelta floored to this resolution.
13411341
13421342
Parameters
13431343
----------
@@ -1347,7 +1347,7 @@ class Timedelta(_Timedelta):
13471347

13481348
def ceil(self, freq):
13491349
"""
1350-
return a new Timedelta ceiled to this resolution
1350+
return a new Timedelta ceiled to this resolution.
13511351
13521352
Parameters
13531353
----------

pandas/_libs/tslibs/timestamps.pyx

+6-6
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class Timestamp(_Timestamp):
441441

442442
def round(self, freq, ambiguous='raise', nonexistent='raise'):
443443
"""
444-
Round the Timestamp to the specified resolution
444+
Round the Timestamp to the specified resolution.
445445
446446
Parameters
447447
----------
@@ -483,7 +483,7 @@ default 'raise'
483483

484484
def floor(self, freq, ambiguous='raise', nonexistent='raise'):
485485
"""
486-
return a new Timestamp floored to this resolution
486+
return a new Timestamp floored to this resolution.
487487
488488
Parameters
489489
----------
@@ -519,7 +519,7 @@ default 'raise'
519519

520520
def ceil(self, freq, ambiguous='raise', nonexistent='raise'):
521521
"""
522-
return a new Timestamp ceiled to this resolution
522+
return a new Timestamp ceiled to this resolution.
523523
524524
Parameters
525525
----------
@@ -556,7 +556,7 @@ default 'raise'
556556
@property
557557
def tz(self):
558558
"""
559-
Alias for tzinfo
559+
Alias for tzinfo.
560560
"""
561561
return self.tzinfo
562562

@@ -754,7 +754,7 @@ default 'raise'
754754
def resolution(self):
755755
"""
756756
Return resolution describing the smallest difference between two
757-
times that can be represented by Timestamp object_state
757+
times that can be represented by Timestamp object_state.
758758
"""
759759
# GH#21336, GH#21365
760760
return Timedelta(nanoseconds=1)
@@ -893,7 +893,7 @@ default 'raise'
893893
hour=None, minute=None, second=None, microsecond=None,
894894
nanosecond=None, tzinfo=object, fold=0):
895895
"""
896-
implements datetime.replace, handles nanoseconds
896+
implements datetime.replace, handles nanoseconds.
897897
898898
Parameters
899899
----------

0 commit comments

Comments
 (0)