Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sequence of scalars for histogram bins #305

Closed
vincentsarago opened this issue Apr 27, 2021 · 0 comments · Fixed by #307
Closed

Allow sequence of scalars for histogram bins #305

vincentsarago opened this issue Apr 27, 2021 · 0 comments · Fixed by #307
Labels
enhancement New feature or request

Comments

@vincentsarago
Copy link
Member

histogram_bins: Optional[int] = Query(None, description="Histogram bins.")

bins (int or sequence of scalars or str, optional)
If bins is an int, it defines the number of equal-width bins in the given range (10, by default). If bins is a sequence, it defines a monotonically increasing array of bin edges, including the rightmost edge, allowing for non-uniform bin widths.

ref: https://numpy.org/doc/stable/reference/generated/numpy.histogram.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant