8000 PERF: fix regression in creation of resulting index in RollingGroupby by jorisvandenbossche · Pull Request #38057 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

PERF: fix regression in creation of resulting index in RollingGroupby #38057

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
Prev Previous commit
simplify
  • Loading branch information
jorisvandenbossche committed Dec 1, 2020
commit 485f39993956a591a0bba15624de6543d16ec32e
2 changes: 1 addition & 1 deletion pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def _apply(

group_indices = self._groupby.grouper.indices.values()
if group_indices:
indexer = np.concatenate(list(self._groupby.grouper.indices.values()))
indexer = np.concatenate(list(group_indices))
else:
indexer = np.array([], dtype=np.intp)
codes = [c.take(indexer) for c in codes]
Expand Down
0