Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT-#7021: Implement to/from_dask functions #7022

Merged
merged 10 commits into from
Mar 18, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
ExperimentalPandasXmlParser,
)
from modin.pandas.series import Series
from modin.utils import MODIN_UNNAMED_SERIES_LABEL, import_optional_dependency
from modin.utils import MODIN_UNNAMED_SERIES_LABEL


class PandasOnDaskIO(BaseIO):
Expand Down Expand Up @@ -171,9 +171,6 @@ def to_dask(cls, modin_obj):
dask.dataframe.DataFrame or dask.dataframe.Series
Converted object with type depending on input.
"""
import_optional_dependency(
"dask-expr", "dask-expr is required to create a Dask DataFrame."
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default message from dask.dataframe is more user friendly, so I suggest not using this method.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think that we should not check the version for dusk_expr. Yes, it has problems in 1.0.1 version, but this is a problem in Dusk, not our compatibility with it. In addition, this library releases new versions very quickly and, in my opinion, users are unlikely to encounter this problem in the future.

from dask.dataframe import from_delayed

partitions = unwrap_partitions(modin_obj, axis=0)
Expand Down
Loading