@property
    def _constructor(self):
        return self.__class__
class constructor (for this class it's just `__class__`
dataset/ETHPy150Open pydata/pandas/pandas/core/base.py/PandasObject._constructor