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 b318679 commit 376a0c6Copy full SHA for 376a0c6
pandas/core/interchange/column.py
@@ -362,10 +362,9 @@ def _get_validity_buffer(self) -> tuple[PandasBuffer, Any]:
362
363
if isinstance(self._col.dtype, ArrowDtype):
364
arr = self._col.array
365
- buf = arr._pa_array.chunks[0].buffers()[0]
366
dtype = (DtypeKind.BOOL, 1, ArrowCTypes.BOOL, Endianness.NATIVE)
367
- if buf is None:
368
- return buf, dtype
+ if all(chunk.buffers()[0] is None for chunk in arr._pa_array.chunks):
+ return None, dtype
369
buffer = PandasBufferPyarrow(
370
arr._pa_array, is_validity=True, allow_copy=self._allow_copy
371
)
0 commit comments