Skip to content

Commit b5e9602

Browse files
code sample for pandas-dev#45615
1 parent f12f6e8 commit b5e9602

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bisect/45615.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# BUG: is_bool_dtype 'Series' object has no attribute 'categories' #45615
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
from pandas import Series
8+
from pandas.core.dtypes.common import is_bool_dtype
9+
10+
s = Series(["foo", "bar", "baz"], dtype="category")
11+
result = is_bool_dtype(s)
12+
print(result)

0 commit comments

Comments
 (0)