-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix: preserve dimensions for keepdims=True
, axis=None
reductions
#2177
Conversation
if not check_regular and ( | ||
left.is_list and right.is_regular or left.is_regular and right.is_list | ||
): | ||
left = left.to_ListOffsetArray64() | ||
right = right.to_ListOffsetArray64() | ||
else: | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use this here, but I wrote it, and then removed the usage. I think it's good to keep for future tests.
Codecov Report
Additional details and impacted files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is mostly just a renaming, but it implements keep_dims
for lists. 👍
keepdims=True
, axis=None
reductions
Fixes #2159 by adding a new
keepdims
to the renamedak._do.remove_structure
function. This just moves the list boundaries to the start and end elements of each list, so that the final result is a nested series of length-1 lists (besides the innermost dimension of lengthN
).