@@ -610,7 +610,7 @@ cdef class BaseOffset:
610
610
611
611
>>> pd.offsets.Week(5).rule_code
612
612
'W'
613
- """ # noqa
613
+ """ # noqa
614
614
return self._prefix
615
615
616
616
@cache_readonly
@@ -638,7 +638,7 @@ cdef class BaseOffset:
638
638
639
639
>>> pd.offsets.Nano(-3).freqstr
640
640
'-3ns'
641
- """ # noqa
641
+ """ # noqa
642
642
try:
643
643
code = self .rule_code
644
644
except NotImplementedError:
@@ -821,7 +821,7 @@ cdef class BaseOffset:
821
821
--------
822
822
>>> pd.offsets.Week(n=1).nanos
823
823
ValueError: <Week: weekday=None> is a non-fixed frequency
824
- """ # noqa
824
+ """ # noqa
825
825
raise ValueError (f" {self} is a non-fixed frequency" )
826
826
827
827
# ------------------------------------------------------------------
@@ -1042,7 +1042,7 @@ cdef class Tick(SingleConstructorOffset):
1042
1042
--------
1043
1043
>>> pd.offsets.Hour(5).nanos
1044
1044
18000000000000
1045
- """ # noqa
1045
+ """ # noqa
1046
1046
return self.n * self._nanos_inc
1047
1047
1048
1048
def is_on_offset(self , dt: datetime ) -> bool:
@@ -2486,7 +2486,7 @@ cdef class WeekOfMonthMixin(SingleConstructorOffset):
2486
2486
2487
2487
>>> pd.offsets.WeekOfMonth(n = 1 , week = 0 , weekday = 0 ).rule_code
2488
2488
'WOM-1MON'
2489
- """ # noqa
2489
+ """ # noqa
2490
2490
weekday = int_to_weekday.get(self .weekday, " " )
2491
2491
if self.week == -1:
2492
2492
# LastWeekOfMonth
@@ -2548,7 +2548,7 @@ cdef class YearOffset(SingleConstructorOffset):
2548
2548
2549
2549
>>> pd.tseries.offsets.YearEnd(n = 1 , month = 6 ).rule_code
2550
2550
'YE-JUN'
2551
- """ # noqa
2551
+ """ # noqa
2552
2552
month = MONTH_ALIASES[self .month]
2553
2553
return f"{self._prefix}-{month}"
2554
2554
@@ -3550,7 +3550,7 @@ cdef class Week(SingleConstructorOffset):
3550
3550
3551
3551
>>> pd.offsets.Week(5).rule_code
3552
3552
'W'
3553
- """ # noqa
3553
+ """ # noqa
3554
3554
suffix = " "
3555
3555
if self.weekday is not None:
3556
3556
weekday = int_to_weekday[self .weekday]
0 commit comments