-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Closed
Description
maintenance/1.9.x:
In [8]: ap = np.array([0, 2, 4, 6, 8, 10])
# Passing an empty 'k' array to partition is a no-op:
In [9]: ap.partition(np.array([], dtype=np.int64))
In [10]: ap
Out[10]: array([ 0, 2, 4, 6, 8, 10])
1.10.1:
In [2]: ap = np.array([0, 2, 4, 6, 8, 10])
In [3]: ap.partition(np.array([], dtype=np.int64))
---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-3-c708b3f943a6> in <module>()
----> 1 ap.partition(np.array([], dtype=np.int64))
MemoryError:
Noticed this because it's breaking some tests in patsy.