-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Update histograms.md #2242
Update histograms.md #2242
Conversation
Added `Accessing the y-axis values` section
doc/python/histograms.md
Outdated
@@ -69,6 +69,32 @@ fig = px.histogram(df, x="total_bill", nbins=20) | |||
fig.show() | |||
``` | |||
|
|||
#### Accessing the y-axis values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe Accessing the counts (y-axis) values
?
Thank you for the example @SylwiaOliwia2 ! A lot of people get confused about this, it will be very useful. I'm just curious to know why you used pandas functions instead of
|
Indeed, I used to pandas, this solution was the most obvious solution to me. |
@SylwiaOliwia2 I agree that I find the numpy solution simpler. |
'Accessing the counts (y-axis) values' - use example with numpy instead of pandas
@emmanuelle done :) |
Thank you @SylwiaOliwia2 ! Now that you have contributed several doc PRs to plotly.py, do you have any feedback about the contribution process? Any way that we could improve it? Do you feel like trying to work on a bug or a part of the code for your next PR ;-) ? Great to have here anyway! |
Thank you, @emmanuelle :) Definitely I can try working out on the code the next time. Feel free to suggest any issue :) Regarding contribution, using tags is very helpful (that's how I've found the issue), especially for newbies. So keep using them, please ;) |
Added
Accessing the y-axis values
section