-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: allow ranges to be set on Styler .bar() #21526
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
Comments
Please be sure to checkout out the contributing guide on how to open bug reports: https://pandas.pydata.org/pandas-docs/stable/contributing.html#bug-reports-and-enhancement-requests This is missing version information and a minimally reproducible example. You can find more information on how to construct one of those here: http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports It's difficult to infer from what you have here alone exactly what the problem is and what you are looking for, so try going through the above to see if we can get to something more explicit |
Pandas version 0.23.0 In the following example a dataframe is created with a column containing two outlier values (
In column For columns |
FYI: pull request #21548 now includes support for |
* ENH: Styler.bar: add support for tablewise application with axis=None #21548 - eliminate code duplication related to style.bar with different align modes - add support for axis=None - fix minor bug with align 'zero' and width < 100 - make generated CSS gradients more compact * ENH: Styler.bar: add support for vmin/vmax #21526 * ENH: Styler.bar: properly support NaNs * ENH: Styler.bar: docstring improvements
* ENH: Styler.bar: add support for tablewise application with axis=None pandas-dev#21548 - eliminate code duplication related to style.bar with different align modes - add support for axis=None - fix minor bug with align 'zero' and width < 100 - make generated CSS gradients more compact * ENH: Styler.bar: add support for vmin/vmax pandas-dev#21526 * ENH: Styler.bar: properly support NaNs * ENH: Styler.bar: docstring improvements
Is there a way to set the color range in the currently released pandas version? |
@domoritz there is a |
this issue would appear to be solved by the above PRs and acceptance by OP. |
When generating in table bar charts using the Styler
.bar()
:One solution would be to allow the setting of explicit bounds on the range of values used to limit the bar extrema using explicit values rather than
s.min()
ands.max()
.Cell values exceeding the range limits could be extending to the cell edge / maximum limit value and then coloured with an "overflow" colour.
The text was updated successfully, but these errors were encountered: