diff --git a/ibis/backends/pandas/__init__.py b/ibis/backends/pandas/__init__.py index 2debef7b8d2a..402d058d2537 100644 --- a/ibis/backends/pandas/__init__.py +++ b/ibis/backends/pandas/__init__.py @@ -245,24 +245,6 @@ def drop_table(self, name: str, *, force: bool = False) -> None: def _convert_object(self, obj: Any) -> Any: return _convert_object(obj, self) - if isinstance(obj, pd.DataFrame): - return obj - elif isinstance(obj, ir.Table): - op = obj.op() - if isinstance(op, ops.InMemoryTable): - return op.data.to_frame() - else: - raise com.BackendConversionError( - f"Unable to convert {obj.__class__} object " - f"to backend type: {self.__class__.backend_table_type}" - ) - elif isinstance(obj, pa.Table): - return obj.to_pandas() - else: - raise com.BackendConversionError( - f"Unable to convert {obj.__class__} object " - f"to backend type: {self.__class__.backend_table_type}" - ) @classmethod @lru_cache