You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow-up of #275. I've found numpy.unique(x, return_counts=True) quite useful. It allows us to build a histogram for the input array x. I'd suggest us to add the following function:
defunique_counts(x, /):
""" return a tuple of two arrays (unique values and counts) """