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 5f913cb commit 7949bc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibis/backends/base/__init__.py
Original file line number Diff line number Diff line change
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 7949bc6

Please sign in to comment.