We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b0d3bc commit 76f2e24Copy full SHA for 76f2e24
pandas/core/interchange/buffer.py
@@ -115,7 +115,7 @@ def bufsize(self) -> int:
115
"""
116
Buffer size in bytes.
117
118
- return self._buffer.size * self._length
+ return self._buffer.size # * self._length
119
120
@property
121
def ptr(self) -> int:
pandas/core/interchange/column.py
@@ -318,6 +318,13 @@ def _get_data_buffer(
318
buffer = PandasBufferPyarrow(
319
arr._pa_array, is_validity=False, allow_copy=self._allow_copy
320
)
321
+ if self.dtype[0] == DtypeKind.BOOL:
322
+ dtype = (
323
+ DtypeKind.BOOL,
324
+ 1,
325
+ ArrowCTypes.BOOL,
326
+ Endianness.NATIVE,
327
+ )
328
return buffer, dtype
329
if isinstance(self._col.dtype, BaseMaskedDtype):
330
np_arr = arr._data # type: ignore[attr-defined]
0 commit comments