fletcher.algorithms.bool module¶
-
fletcher.algorithms.bool.
all_op
(arr: Union[pyarrow.lib.ChunkedArray, pyarrow.lib.Array], skipna: bool) → bool¶ Perform all() on a boolean Arrow structure.
-
fletcher.algorithms.bool.
all_true
(arr: pyarrow.lib.Array) → pyarrow.lib.Array¶ Return a boolean array with all-True, all-valid with the same size .
-
fletcher.algorithms.bool.
all_true_like
(arr: pyarrow.lib.Array) → pyarrow.lib.Array¶ Return a boolean array with all-True with the same size as the input and the same valid bitmap.
-
fletcher.algorithms.bool.
any_op
(arr: Union[pyarrow.lib.ChunkedArray, pyarrow.lib.Array], skipna: bool) → bool¶ Perform any() on a boolean Arrow structure.
-
fletcher.algorithms.bool.
bitmap_or_unaligned
(length: int, a: bytes, offset_a: int, b: bytes, offset_b: int, result: numpy.ndarray) → None¶ Perform OR on two bitmaps without any alignments requirements.
-
fletcher.algorithms.bool.
bitmap_or_unaligned_with_numpy
(length: int, valid_bits_a: bytes, a: bytes, offset_a: int, b: numpy.ndarray, result: numpy.ndarray, valid_bits: numpy.ndarray) → int¶ Perform OR on a bitmap with valid bitmask and a numpy array with truthy rows.
-
fletcher.algorithms.bool.
bitmap_or_unaligned_with_numpy_nonnull
(length: int, a: bytes, offset_a: int, b: numpy.ndarray, result: numpy.ndarray) → None¶ Perform OR on a bitmap and a numpy array with truthy rows.
-
fletcher.algorithms.bool.
masked_bitmap_or_unaligned
(length: int, valid_bits_a: bytes, a: bytes, offset_a: int, valid_bits_b: bytes, b: bytes, offset_b: int, result: numpy.ndarray, valid_bits: numpy.ndarray) → int¶ Perform OR on two bitmaps with valid bitmasks without any alignment requirements.
-
fletcher.algorithms.bool.
or_array_array
(a: pyarrow.lib.Array, b: pyarrow.lib.Array) → pyarrow.lib.Array¶ Perform
pyarrow.Array | pyarrow.Array
.
-
fletcher.algorithms.bool.
or_array_nparray
(a: pyarrow.lib.Array, b: numpy.ndarray) → pyarrow.lib.Array¶ Perform
pa.Array | np.ndarray
.
-
fletcher.algorithms.bool.
or_na
(arr: pyarrow.lib.Array) → pyarrow.lib.Array¶ Apply
array | NA
with a boolean pyarrow.Array.
-
fletcher.algorithms.bool.
or_vectorised
(a: Union[pyarrow.lib.Array, pyarrow.lib.ChunkedArray], b: Any)¶ Perform OR on a boolean Arrow structure and a second operator.