(self, item)
return item in (self.table.columns if isinstance(item, str) else self)
Check by both row object and column name.
Check by both row object and column name.
Check by both row object and column name .
def __contains__(self, item):
        """
        Check by both row object and column name.
        """
        return item in (self.table.columns if isinstance(item, str) else self)
def __contains__ ( self , item ) : return item in ( self . table . columns if isinstance ( item , str ) else self )