8000 Prevent Unlimited Agg Recursion with Duplicate Col Names by WillAyd · Pull Request #21066 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Prevent Unlimited Agg Recursion with Duplicate Col Names #21066

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

Merged
merged 10 commits into from
May 17, 2018
Prev Previous commit
Simplified DataFrame _got_item implementation
  • Loading branch information
WillAyd committed May 17, 2018
commit c0dc3f4119de05ae33d0650f4001661513a5807e
4 changes: 2 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5751,8 +5751,8 @@ def _gotitem(self,
"""
if subset is None:
subset = self
elif subset.ndim == 1:
subset = self._constructor(subset)
elif subset.ndim == 1: # is Series
return subset

# TODO: _shallow_copy(subset)?
return subset[key]
Expand Down
0