Example #1
0
 def _box_func(self):
     return lambda x: Period._from_ordinal(ordinal=x, freq=self.freq)
Example #2
0
 def _box_func(self):
     return lambda x: Period._from_ordinal(ordinal=x, freq=self.freq)
Example #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)
Example #4
0
 def _box_func(self, x) -> Period | NaTType:
     return Period._from_ordinal(ordinal=x, freq=self.freq)
Example #5
0
 def _box_func(self, x) -> Union[Period, NaTType]:
     return Period._from_ordinal(ordinal=x, freq=self.freq)