Skip to content

Commit 90c6603

Browse files
committed
fixup
1 parent bf47be7 commit 90c6603

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/interchange/utils.py

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
DatetimeTZDtype,
1717
)
1818

19+
from pandas import BooleanDtype
20+
1921
if typing.TYPE_CHECKING:
2022
from pandas._typing import DtypeObj
2123

@@ -142,6 +144,9 @@ def dtype_to_arrow_c_fmt(dtype: DtypeObj) -> str:
142144
elif isinstance(dtype, DatetimeTZDtype):
143145
return ArrowCTypes.TIMESTAMP.format(resolution=dtype.unit[0], tz=dtype.tz)
144146

147+
elif isinstance(dtype, BooleanDtype):
148+
return ArrowCTypes.BOOL
149+
145150
raise NotImplementedError(
146151
f"Conversion of {dtype} to Arrow C format string is not implemented."
147152
)

0 commit comments

Comments
 (0)