File tree 4 files changed +19
-13
lines changed
4 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ cdef class IntervalMixin:
94
94
@property
95
95
def mid (self ):
96
96
"""
97
- Return the midpoint of the Interval
97
+ Return the midpoint of the Interval.
98
98
"""
99
99
try :
100
100
return 0.5 * (self .left + self .right)
@@ -104,7 +104,9 @@ cdef class IntervalMixin:
104
104
105
105
@property
106
106
def length (self ):
107
- """ Return the length of the Interval"""
107
+ """
108
+ Return the length of the Interval.
109
+ """
108
110
return self .right - self .left
109
111
110
112
@property
@@ -283,15 +285,19 @@ cdef class Interval(IntervalMixin):
283
285
_typ = " interval"
284
286
285
287
cdef readonly object left
286
- """ Left bound for the interval"""
288
+ """
289
+ Left bound for the interval.
290
+ """
287
291
288
292
cdef readonly object right
289
- """ Right bound for the interval"""
293
+ """
294
+ Right bound for the interval.
295
+ """
290
296
291
297
cdef readonly str closed
292
298
"""
293
299
Whether the interval is closed on the left-side, right-side, both or
294
- neither
300
+ neither.
295
301
"""
296
302
297
303
def __init__ (self , left , right , str closed = ' right' ):
Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ class NaTType(_NaT):
464
464
"""
465
465
Timestamp.combine(date, time)
466
466
467
- date, time -> datetime with same date and time fields
467
+ date, time -> datetime with same date and time fields.
468
468
"""
469
469
)
470
470
utcnow = _make_error_func(' utcnow' , # noqa:E128
@@ -503,8 +503,8 @@ class NaTType(_NaT):
503
503
"""
504
504
Timestamp.fromordinal(ordinal, freq=None, tz=None)
505
505
506
- passed an ordinal, translate and convert to a ts
507
- note : by definition there cannot be any tz info on the ordinal itself
506
+ Passed an ordinal, translate and convert to a ts.
507
+ Note : by definition there cannot be any tz info on the ordinal itself.
508
508
509
509
Parameters
510
510
----------
Original file line number Diff line number Diff line change @@ -2244,7 +2244,7 @@ cdef class _Period:
2244
2244
containing one or several directives. The method recognizes the same
2245
2245
directives as the :func:`time.strftime` function of the standard Python
2246
2246
distribution, as well as the specific additional directives ``%f ``,
2247
- ``%F ``, ``%q ``. (formatting & docs originally from scikits.timeries)
2247
+ ``%F ``, ``%q ``. (formatting & docs originally from scikits.timeries).
2248
2248
2249
2249
+-----------+--------------------------------+-------+
2250
2250
| Directive | Meaning | Notes |
Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ class Timestamp(_Timestamp):
242
242
"""
243
243
Timestamp.fromordinal(ordinal, freq=None, tz=None)
244
244
245
- passed an ordinal, translate and convert to a ts
246
- note : by definition there cannot be any tz info on the ordinal itself
245
+ Passed an ordinal, translate and convert to a ts.
246
+ Note : by definition there cannot be any tz info on the ordinal itself.
247
247
248
248
Parameters
249
249
----------
@@ -333,7 +333,7 @@ class Timestamp(_Timestamp):
333
333
"""
334
334
Timestamp.combine(date, time)
335
335
336
- date, time -> datetime with same date and time fields
336
+ date, time -> datetime with same date and time fields.
337
337
"""
338
338
return cls (datetime.combine(date, time))
339
339
@@ -601,7 +601,7 @@ timedelta}, default 'raise'
601
601
@property
602
602
def dayofweek (self ):
603
603
"""
604
- Return day of whe week.
604
+ Return day of the week.
605
605
"""
606
606
return self .weekday()
607
607
You can’t perform that action at this time.
0 commit comments