Return the buffer containing the mask values indicating missing data and the buffer's associated dtype. Raises NoBufferPresent if null representation is not a bit or byte mask.
(self)
| 488 | return _PyArrowBuffer(array.buffers()[2]), dtype |
| 489 | |
| 490 | def _get_validity_buffer(self) -> Tuple[_PyArrowBuffer, Any]: |
| 491 | """ |
| 492 | Return the buffer containing the mask values indicating missing data |
| 493 | and the buffer's associated dtype. |
| 494 | Raises NoBufferPresent if null representation is not a bit or byte |
| 495 | mask. |
| 496 | """ |
| 497 | # Define the dtype of the returned buffer |
| 498 | dtype = (DtypeKind.BOOL, 1, "b", Endianness.NATIVE) |
| 499 | array = self._col |
| 500 | buff = array.buffers()[0] |
| 501 | if buff: |
| 502 | return _PyArrowBuffer(buff), dtype |
| 503 | else: |
| 504 | raise NoBufferPresent( |
| 505 | "There are no missing values so " |
| 506 | "does not have a separate mask") |
| 507 | |
| 508 | def _get_offsets_buffer(self) -> Tuple[_PyArrowBuffer, Any]: |
| 509 | """ |
no test coverage detected