Skip to content

Commit 91a5f36

Browse files
code sample for pandas-dev#42750
1 parent 4b8e09a commit 91a5f36

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bisect/42750.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# BUG: highlight_min and highlight_max do not work with pd.NA #42750
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
df = pd.DataFrame(dict(a=[pd.NA, -1, 1], b=[pd.NA, -1, 1]))
8+
9+
result = df.style.highlight_min().render()
10+
print(result)

0 commit comments

Comments
 (0)