Skip to content

DEPR: null_color since color used everywhere else #45907

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 13 commits into from
Mar 3, 2022

Conversation

attack68
Copy link
Contributor

@attack68 attack68 commented Feb 9, 2022

in all the builtin highlighters color is used. makes this more consistent.

@jreback jreback added Deprecate Functionality to remove in pandas Styler conditional formatting using DataFrame.style labels Feb 11, 2022
@jreback
Copy link
Contributor

jreback commented Feb 11, 2022

no objections, prob this is showing a warning in another test

@mroeschke mroeschke added this to the 1.5 milestone Feb 22, 2022
@@ -3133,8 +3144,16 @@ def highlight_null(
def f(data: DataFrame, props: str) -> np.ndarray:
return np.where(pd.isna(data).to_numpy(), props, "")

if null_color != "red":
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to make null_color == lib.no_default here (and then if its not that you can warn)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

attack68 added 2 commits March 2, 2022 14:35
# Conflicts:
#	doc/source/whatsnew/v1.5.0.rst
@jreback jreback merged commit e4162cd into pandas-dev:main Mar 3, 2022
@attack68 attack68 deleted the null_color_ref branch March 6, 2022 07:21
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants