-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
BugInternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementationNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operationsTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Milestone
Description
The default value for the axis
argument for nanops.nanmedia
is None
. However, the function raises an exception when using this value:
>>> from pandas.core import nanops
>>> import bottleneck
>>> import numpy as np
>>> nanops._USE_BOTTLENECK = False
>>>
>>> val = np.random.randn(13, 11, 7)
>>>
>>> bottleneck.nanmedian(val, axis=None).ndim
0
>>> nanops.nanmedian(val, axis=None)
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'int'
>>> nanops.nanmedian(val)
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'int'
Metadata
Metadata
Assignees
Labels
BugInternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementationNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operationsTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite