Beispiel #1
0
 def _box_func(self):
     return lambda x: Period._from_ordinal(ordinal=x, freq=self.freq)
Beispiel #2
0
 def _box_func(self):
     return lambda x: Period._from_ordinal(ordinal=x, freq=self.freq)
Beispiel #3
0
 def func(x):
     if isinstance(x, Period) or x is NaT:
         return x
     else:
         return Period._from_ordinal(ordinal=x, freq=self.freq)
Beispiel #4
0
 def _box_func(self, x) -> Period | NaTType:
     return Period._from_ordinal(ordinal=x, freq=self.freq)
Beispiel #5
0
 def _box_func(self, x) -> Union[Period, NaTType]:
     return Period._from_ordinal(ordinal=x, freq=self.freq)