| 607 | return Series |
| 608 | |
| 609 | def _constructor_from_mgr(self, mgr, axes): |
| 610 | ser = Series._from_mgr(mgr, axes=axes) |
| 611 | ser._name = None # caller is responsible for setting real name |
| 612 | |
| 613 | if type(self) is Series: |
| 614 | # This would also work `if self._constructor is Series`, but |
| 615 | # this check is slightly faster, benefiting the most-common case. |
| 616 | return ser |
| 617 | |
| 618 | # We assume that the subclass __init__ knows how to handle a |
| 619 | # pd.Series object. |
| 620 | return self._constructor(ser) |
| 621 | |
| 622 | @property |
| 623 | def _constructor_expanddim(self) -> Callable[..., DataFrame]: |