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

Dask dataframe constructor #850

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

danielballan
Copy link
Member

Closes #848, supersedes #849

Checklist

  • Add a Changelog entry
  • Add the ticket number which this PR closes to the comment section

meta=meta,
divisions=(None,) * (1 + structure.npartitions),
ddf = dask_expr.DataFrame.from_map(
dask_tasks, meta=meta, divisions=(None,) * (1 + structure.npartitions)
Copy link

@phofl phofl Jan 18, 2025

Choose a reason for hiding this comment

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

I think you want:

dd.from_map(self._get_partition, list(range(structure.npartitions)), columns=columns)

Please do not import dask_expr directly. You should import dask.dataframe as dd and use whatever is in the namespace. dask-expr was merged into dask.dataframe and will go away now with the latest release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: module 'dask.dataframe.core' has no attribute 'DataFrame'
2 participants