def __getattr__(self, key: str) -> Any:
    if key.startswith('__'):
        raise AttributeError(key)
    if hasattr(_MissingPandasLikeDataFrame, key):
        property_or_func = getattr(_MissingPandasLikeDataFrame, key)
        if isinstance(property_or_func, property):
            return property_or_func.fget(self)
        else:
            return partial(property_or_func, self)
    try:
        return self.loc[:, key]
    except KeyError:
        raise AttributeError(("'%s' object has no attribute '%s'" % (self.__class__.__name__, key)))
def __getattr__(self, key: str) -> Any:
    if key.startswith('__'):
        raise AttributeError(key)
    if hasattr(_MissingPandasLikeDataFrame, key):
        property_or_func = getattr(_MissingPandasLikeDataFrame, key)
        if isinstance(property_or_func, property):
            return property_or_func.fget(self)
        else:
            return partial(property_or_func, self)
    try:
        return self.loc[:, key]
    except KeyError:
        raise AttributeError(("'%s' object has no attribute '%s'" % (self.__class__.__name__, key)))