Skip to content

Commit c881fdc

Browse files
committed
DOC: offsets removed trailing white spaces from Second, Min
ute, Hour, Day
1 parent 98a760f commit c881fdc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/tslibs/offsets.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ cdef class Day(Tick):
11041104
Examples
11051105
--------
11061106
You can use the parameter ``n`` to represent a shift of n days.
1107-
>>> from pandas.tseries.offsets import Day
1107+
>>> from pandas.tseries.offsets import Day
11081108
>>> ts = pd.Timestamp(2022, 12, 9, 15)
11091109
>>> ts.strftime('%a %d %b %Y %H:%M')
11101110
'Fri 09 Dec 2022 15:00'
@@ -1140,7 +1140,7 @@ cdef class Hour(Tick):
11401140
--------
11411141
You can use the parameter ``n`` to represent a shift of n hours.
11421142
1143-
>>> from pandas.tseries.offsets import Hour
1143+
>>> from pandas.tseries.offsets import Hour
11441144
>>> ts = pd.Timestamp(2022, 12, 9, 15)
11451145
>>> ts.strftime('%a %d %b %Y %H:%M')
11461146
'Fri 09 Dec 2022 15:00'
@@ -1176,7 +1176,7 @@ cdef class Minute(Tick):
11761176
--------
11771177
You can use the parameter ``n`` to represent a shift of n minutes.
11781178
1179-
>>> from pandas.tseries.offsets import Minute
1179+
>>> from pandas.tseries.offsets import Minute
11801180
>>> ts = pd.Timestamp(2022, 12, 9, 15)
11811181
>>> ts.strftime('%a %d %b %Y %H:%M:%S')
11821182
'Fri 09 Dec 2022 15:00:00'
@@ -1212,7 +1212,7 @@ cdef class Second(Tick):
12121212
--------
12131213
You can use the parameter ``n`` to represent a shift of n seconds.
12141214
1215-
>>> from pandas.tseries.offsets import Second
1215+
>>> from pandas.tseries.offsets import Second
12161216
>>> ts = pd.Timestamp(2022, 12, 9, 15)
12171217
>>> ts.strftime('%a %d %b %Y %H:%M:%S')
12181218
'Fri 09 Dec 2022 15:00:00'

0 commit comments

Comments
 (0)