Skip to content

ENH: validate the argument width on Styler.bar #42511

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

Merged
merged 5 commits into from
Jul 13, 2021

Conversation

attack68
Copy link
Contributor

No description provided.

@jreback jreback added the Styler conditional formatting using DataFrame.style label Jul 12, 2021
@jreback jreback added this to the 1.4 milestone Jul 12, 2021
@@ -2121,6 +2121,9 @@ def bar(
"(eg: color=['#d65f5f', '#5fba7d'])"
)

if not (0 <= width <= 100):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

height? other ones?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will add height after other PR which adds feature

@jreback
Copy link
Contributor

jreback commented Jul 13, 2021

can you add the height validation here (just merged that PR)

attack68 added 3 commits July 13, 2021 15:34
…validation

# Conflicts:
#	doc/source/whatsnew/v1.4.0.rst
#	pandas/tests/io/formats/style/test_bar.py
@attack68
Copy link
Contributor Author

done and green

@jreback jreback merged commit fe934d8 into pandas-dev:master Jul 13, 2021
@jreback
Copy link
Contributor

jreback commented Jul 13, 2021

thanks!

@attack68 attack68 deleted the styler_bar_param_validation branch July 14, 2021 05:09
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants