def _freeze(self):
        object.__setattr__(self, "__frozen", True)

    # prevent adding any attribute via s.xxx.new_attribute = ...
Prevents setting additional attributes
dataset/ETHPy150Open pydata/pandas/pandas/core/base.py/NoNewAttributesMixin._freeze