We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eead7fd commit c0fc56dCopy full SHA for c0fc56d
src/boost_histogram/numpy.py
@@ -76,7 +76,7 @@ def histogramdd(
76
77
if density:
78
areas = _reduce(_mul, hist.axes.widths)
79
- density = hist.view() / hist.sum() / areas
+ density = hist.values() / np.sum(hist.values()) / areas
80
return (density, hist.to_numpy()[1:])
81
82
# Note: this is view=True since users have to ask explicitly for special
0 commit comments