Skip to content

BUG: Fix windowing over read-only arrays #27767

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 4 commits into from
Aug 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
strip comment now that np.where is used
  • Loading branch information
kernc committed Aug 6, 2019
commit bdb0ca50bbb0c5b720ac9064b25c8e68c99c72fb
1 change: 0 additions & 1 deletion pandas/core/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ def _prep_values(self, values: Optional[np.ndarray] = None) -> np.ndarray:
# Convert inf to nan for C funcs
inf = np.isinf(values)
if inf.any():
# GH-27766, Don't write into user's data
values = np.where(inf, np.nan, values)

return values
Expand Down