-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
Conversation
no objections, prob this is showing a warning in another test |
pandas/io/formats/style.py
Outdated
@@ -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": |
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.
you need to make null_color
== lib.no_default
here (and then if its not that you can warn)
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.
done
# Conflicts: # doc/source/whatsnew/v1.5.0.rst
in all the builtin highlighters
color
is used. makes this more consistent.