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:
115115 """
116116 Buffer size in bytes.
117117 """
118- return self ._buffer .size * self ._length
118+ return self ._buffer .size # * self._length
119119
120120 @property
121121 def ptr (self ) -> int :
Original file line number Diff line number Diff line change @@ -318,6 +318,13 @@ def _get_data_buffer(
318318 buffer = PandasBufferPyarrow (
319319 arr ._pa_array , is_validity = False , allow_copy = self ._allow_copy
320320 )
321+ if self .dtype [0 ] == DtypeKind .BOOL :
322+ dtype = (
323+ DtypeKind .BOOL ,
324+ 1 ,
325+ ArrowCTypes .BOOL ,
326+ Endianness .NATIVE ,
327+ )
321328 return buffer , dtype
322329 if isinstance (self ._col .dtype , BaseMaskedDtype ):
323330 np_arr = arr ._data # type: ignore[attr-defined]
You can’t perform that action at this time.
0 commit comments