Why does stats.binned_statistic_2d convert its values argument from array into a list? #13608
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.stats
Milestone
Consider this toy example:
Reproducing code example:
Looking at the latest documentation, I read the following describing how the statistic argument can be a user-defined function:
Evidently this isn't the correct behavior. Looking at the source code I see the culprit:
Clearly, the elements of bin_map are going to be a python list rather than a numpy array. What exactly is the intended behavior here?
Scipy/Numpy/Python version information:
1.6.0 1.20.0 sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0)
The text was updated successfully, but these errors were encountered: