You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PR #56341 , we've identified a compatibility issue in Styler.bar where numpy methods fail to properly handle pd.NA.
Related comment as below:
Then the next question is what are the other uses of values. In the code below you will observe the function np.nanmean(values). Does this mean your fix will not work when align="mean"? Or if align is callable? values is also used when there is a cmap.
To demonstrate the problem, I have prepared a code snippet and screenshots showing the error caused by align='mean'. I believe a detailed examination of the compatibility of numpy methods with pd.NA in Styler.bar is needed.
In PR #56341 , we've identified a compatibility issue in
Styler.bar
where numpy methods fail to properly handlepd.NA
.Related comment as below:
Then the next question is what are the other uses of
values
. In the code below you will observe the functionnp.nanmean(values)
. Does this mean your fix will not work whenalign="mean"
? Or ifalign
is callable?values
is also used when there is acmap
.Originally posted by @attack68 in #56341 (review)
To demonstrate the problem, I have prepared a code snippet and screenshots showing the error caused by
align='mean'
. I believe a detailed examination of the compatibility of numpy methods withpd.NA
inStyler.bar
is needed.The text was updated successfully, but these errors were encountered: