Skip to content

Commit 4644b7a

Browse files
committed
reduce
1 parent 790b02b commit 4644b7a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pandas/core/interchange/column.py

-7
Original file line numberDiff line numberDiff line change
@@ -353,16 +353,9 @@ def _get_validity_buffer(self) -> tuple[PandasBuffer, Any]:
353353

354354
if isinstance(self._col.dtype, BaseMaskedDtype):
355355
buf = self._col.array._data
356-
357356
mask = self._col.array._mask
358-
359-
# Convert the mask array to a Pandas "buffer" using
360-
# a NumPy array as the backing store
361357
buffer = PandasBuffer(mask)
362-
363-
# Define the dtype of the returned buffer
364358
dtype = (DtypeKind.BOOL, 8, ArrowCTypes.BOOL, Endianness.NATIVE)
365-
366359
return buffer, dtype
367360

368361
if self.dtype[0] == DtypeKind.STRING:

0 commit comments

Comments
 (0)