File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def bufsize(self) -> int:
115
115
"""
116
116
Buffer size in bytes.
117
117
"""
118
- return self ._buffer .size * self ._length
118
+ return self ._buffer .size # * self._length
119
119
120
120
@property
121
121
def ptr (self ) -> int :
Original file line number Diff line number Diff line change @@ -318,6 +318,13 @@ def _get_data_buffer(
318
318
buffer = PandasBufferPyarrow (
319
319
arr ._pa_array , is_validity = False , allow_copy = self ._allow_copy
320
320
)
321
+ if self .dtype [0 ] == DtypeKind .BOOL :
322
+ dtype = (
323
+ DtypeKind .BOOL ,
324
+ 1 ,
325
+ ArrowCTypes .BOOL ,
326
+ Endianness .NATIVE ,
327
+ )
321
328
return buffer , dtype
322
329
if isinstance (self ._col .dtype , BaseMaskedDtype ):
323
330
np_arr = arr ._data # type: ignore[attr-defined]
You can’t perform that action at this time.
0 commit comments