-
Is there a given way to create a cumulative histogram using Hist? |
Beta Was this translation helpful? Give feedback.
Answered by
henryiii
Sep 16, 2021
Replies: 1 comment 1 reply
-
1D, anyway: array = np.cumsum(h.values()) If you want a histogram object out, then: cumsum_hist = h.copy()
cumsum_hist[...] = np.cumsum(h) You can be explicit and use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
txell-1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1D, anyway:
If you want a histogram object out, then:
You can be explicit and use
h.values()
, but justh
works inside cumsum, as it exposes the interface NumPy expects.