Skip to content

Commit 638cc68

Browse files
code sample for pandas-dev#44903
1 parent 33e2c63 commit 638cc68

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

bisect/44903.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# BUG: Boolean type cannot be compared with strigs #44903
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
8+
s = pd.Series([True, False, pd.NA], dtype="boolean")
9+
try:
10+
result = s == "X"
11+
except TypeError as e:
12+
print(e)
13+
exit(0)
14+
else:
15+
print(result)
16+
exit(1)

0 commit comments

Comments
 (0)