Skip to content

Move non-dependent on modin.DataFrame utils from modin/pandas/utils.py to modin/utils.py #2054

@dchigarev

Description

@dchigarev

Currently importing anything from modin/pandas/utils.py will trigger the execution of modin/pandas/__init__.py which imports modin/pandas/concat.py in its scope, which in its turn imports BaseQueryCompiler.

So if we want to import some util functions in BaseQueryCompiler we will create a circular import which will lead to an ImportError, because when inside BaseQueryCompiler we want to

from modin.pandas.utils import try_cast_to_pandas

it will trigger to import BaseQueryCompiler inside BaseQueryCompiler

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions