diff --git a/ibis/expr/types/relations.py b/ibis/expr/types/relations.py index 58d6141513b7..20b7469a1a17 100644 --- a/ibis/expr/types/relations.py +++ b/ibis/expr/types/relations.py @@ -2501,9 +2501,7 @@ def drop(self, *fields: str | Selector) -> Table: # no-op if nothing to be dropped return self - columns_to_drop = frozenset( - map(operator.methodcaller("get_name"), self._fast_bind(*fields)) - ) + columns_to_drop = frozenset(map(Expr.get_name, self._fast_bind(*fields))) return ops.DropColumns(parent=self, columns_to_drop=columns_to_drop).to_expr() def filter(