@property<EOL><INDENT>def _box_func(self):<DEDENT>
<EOL>def func(x):<EOL><INDENT>if isinstance(x, Period) or x is NaT:<EOL><INDENT>return x<EOL><DEDENT>else:<EOL><INDENT>return Period._from_ordinal(ordinal=x, freq=self.freq)<EOL><DEDENT><DEDENT>return func<EOL>
Maybe box an ordinal or Period