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: add dak.zip_no_broadcast #567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pfackeldey
Copy link
Collaborator

Awkward-array v2.7.4 introduces ak.zip_no_broadcast which is useful for coffea to construct arrays without touching unwanted buffer keys. This PR implements the dak equivalent.

Copy link
Collaborator

@martindurant martindurant left a comment

Choose a reason for hiding this comment

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

Everything looks in order.

@@ -468,7 +468,7 @@ def to_dataframe(
"""
import dask
from dask.dataframe import DataFrame as DaskDataFrame
from dask.dataframe.core import new_dd_object # type: ignore
from dask.dataframe.core import new_dd_object
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not work with new dask, this is the problem that needs fixing. I don't know if that has any implication for this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

my pre-commit did complain about this - ah maybe I was on an old dask version locally?

Copy link
Collaborator

@martindurant martindurant Jan 31, 2025

Choose a reason for hiding this comment

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

I suppose it's fine either way, we know this code is OK on python 3.9 (which never got the new dask) and doesn't work on newer versions at all.

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.

2 participants