We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf47be7 commit 90c6603Copy full SHA for 90c6603
pandas/core/interchange/utils.py
@@ -16,6 +16,8 @@
16
DatetimeTZDtype,
17
)
18
19
+from pandas import BooleanDtype
20
+
21
if typing.TYPE_CHECKING:
22
from pandas._typing import DtypeObj
23
@@ -142,6 +144,9 @@ def dtype_to_arrow_c_fmt(dtype: DtypeObj) -> str:
142
144
elif isinstance(dtype, DatetimeTZDtype):
143
145
return ArrowCTypes.TIMESTAMP.format(resolution=dtype.unit[0], tz=dtype.tz)
146
147
+ elif isinstance(dtype, BooleanDtype):
148
+ return ArrowCTypes.BOOL
149
150
raise NotImplementedError(
151
f"Conversion of {dtype} to Arrow C format string is not implemented."
152
0 commit comments