Skip to content

Commit

Permalink
refactor(imports): move pandas-importing object to method
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Oct 14, 2023
1 parent ce1a042 commit 103a524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibis/backends/base/__init__.py
Expand Up @@ -22,7 +22,6 @@
import ibis.expr.types as ir
from ibis import util
from ibis.common.caching import RefCountedCache
from ibis.formats.pandas import PandasData

if TYPE_CHECKING:
from collections.abc import Iterable, Iterator, Mapping, MutableMapping
Expand Down Expand Up @@ -266,6 +265,8 @@ def to_pandas_batches(
Iterator[pd.DataFrame]
An iterator of pandas `DataFrame`s.
"""
from ibis.formats.pandas import PandasData

orig_expr = expr
expr = expr.as_table()
schema = expr.schema()
Expand Down

0 comments on commit 103a524

Please sign in to comment.