Skip to content

Commit 376a0c6

Browse files
committed
fixup
1 parent b318679 commit 376a0c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/interchange/column.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,9 @@ def _get_validity_buffer(self) -> tuple[PandasBuffer, Any]:
362362

363363
if isinstance(self._col.dtype, ArrowDtype):
364364
arr = self._col.array
365-
buf = arr._pa_array.chunks[0].buffers()[0]
366365
dtype = (DtypeKind.BOOL, 1, ArrowCTypes.BOOL, Endianness.NATIVE)
367-
if buf is None:
368-
return buf, dtype
366+
if all(chunk.buffers()[0] is None for chunk in arr._pa_array.chunks):
367+
return None, dtype
369368
buffer = PandasBufferPyarrow(
370369
arr._pa_array, is_validity=True, allow_copy=self._allow_copy
371370
)

0 commit comments

Comments
 (0)