-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REGR: groupby with as_index=False on an empty frame #42254
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
Conversation
@@ -1676,7 +1676,8 @@ def _wrap_transformed_output( | |||
|
|||
def _wrap_agged_manager(self, mgr: Manager2D) -> DataFrame: | |||
if not self.as_index: | |||
index = Index(range(mgr.shape[1])) | |||
rows = mgr.shape[1] if mgr.shape[0] > 0 else 0 |
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.
comment here about why, pointing back to the issue/pr?
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.
Thanks - added.
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 should strive to move this code inside internal (separate PR for sure)
This looks right to me, but merits another pair of eyeballs |
this looks good, thanks @rhshadrach |
@meeseeksdev backport 1.3.x |
Something went wrong ... Please have a look at my logs. |
…me (#42280) Co-authored-by: Richard Shadrach <[email protected]>
No whatsnew because this was introduced in 1.3