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

Row-wise Mode Functionality (Dask Issue #11389) #1136

Open
thyripian opened this issue Sep 19, 2024 · 0 comments
Open

Row-wise Mode Functionality (Dask Issue #11389) #1136

thyripian opened this issue Sep 19, 2024 · 0 comments

Comments

@thyripian
Copy link

thyripian commented Sep 19, 2024

I conducted a brief search to confirm if this has already been opened here.

Dask Issue #11389 requested the addition of row-wise mode functionality for DataFrames. Through extensive research and testing, I found that the necessary modifications had to be made within dask_expr/_collection.py in the dask-expr repository.

I’m submitting this issue to formally document the need for these changes, and I plan to submit a PR shortly to support this. The code changes are already complete and have been thoroughly tested locally—PR submitted, pending approval.

thyripian added a commit to thyripian/dask-expr that referenced this issue Sep 19, 2024
- Added functionality for row-wise mode calculation (axis=1) to support the Dask DataFrame API.
- The new implementation dynamically handles row-wise mode and ensures consistent metadata handling across partitions.
- Added validation for the axis parameter, with appropriate error handling for unsupported values.
- Ensured compatibility with existing column-wise (axis=0) mode functionality, preserving the original behavior for that case.

Resolves dask-expr issue dask#1136.
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

No branches or pull requests

1 participant