Skip to content

Commit 6cadd6c

Browse files
author
y-p
committed
BUG: workaround numpy issue in 1.6.2 on certain distros
pandas issue #2490 numpy/numpy#324 manifests only on certain distors, probably libc dependent. debian wheezy, libc 2.13-37 is affected ubuntu precise 2.15-0ubuntu10.2 is not These are not necessarily the earliest/latest package revisions addected/not affected respectively.
1 parent d6cca0b commit 6cadd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/stats/moments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def _center_window(rs, window, axis):
302302
na_indexer = [slice(None)] * rs.ndim
303303
na_indexer[axis] = slice(-offset, None)
304304

305-
rs[tuple(rs_indexer)] = rs[tuple(lead_indexer)]
305+
rs[tuple(rs_indexer)] = np.copy(rs[tuple(lead_indexer)])
306306
rs[tuple(na_indexer)] = np.nan
307307
return rs
308308

0 commit comments

Comments
 (0)