scoreatpercentile() does not handle empty list inputs (Trac #1372) #1897
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
Migrated from Trac
scipy.stats
Milestone
Original ticket http://projects.scipy.org/scipy/ticket/1372 on 2011-01-27 by trac user mpenning, assigned to unknown.
When iterating through slices of list structures, occasionally scoreatpercentile() may get called with an empty list, resulting in a IndexError traceback that looks similar to this:
scoreatpercentile() should return numpy.nan if the input list is empty...
The following code may be useful as a local substitute while the bug gets fixed...
The text was updated successfully, but these errors were encountered: