ak.contents.UnmaskedArray#

Defined in awkward.contents.unmaskedarray on line 55.

class ak.contents.UnmaskedArray(self, content, *, parameters=None)#

UnmaskedArray implements an ak.types.OptionType for which the values are never, in fact, missing. It exists to satisfy systems that formally require this high-level type without the overhead of generating an array of all True or all False values.

This is like NumPy’s masked arrays with mask=None.

It is also like Apache Arrow’s validity bitmaps because the bitmap can be omitted when all values are valid.

To illustrate how the constructor arguments are interpreted, the following is a simplified implementation of __init__, __len__, and __getitem__:

class UnmaskedArray(Content):
    def __init__(self, content):
        assert isinstance(content, Content)
        self.content = content

    def __len__(self):
        return len(self.content)

    def __getitem__(self, where):
        if isinstance(where, int):
            return self.content[where]
        else:
            return UnmaskedArray(self.content[where])
ak.contents.UnmaskedArray.copy(self, content=UNSET, *, parameters=UNSET)#
ak.contents.UnmaskedArray.__copy__(self)#
ak.contents.UnmaskedArray.__deepcopy__(self, memo)#
ak.contents.UnmaskedArray.simplified(cls, content, *, parameters=None)#
ak.contents.UnmaskedArray._form_with_key(self, getkey)#
ak.contents.UnmaskedArray._to_buffers(self, form, getkey, container, backend, byteorder)#
ak.contents.UnmaskedArray._to_typetracer(self, forget_length)#
ak.contents.UnmaskedArray._touch_data(self, recursive)#
ak.contents.UnmaskedArray._touch_shape(self, recursive)#
ak.contents.UnmaskedArray.length#
ak.contents.UnmaskedArray.__repr__(self)#
ak.contents.UnmaskedArray._repr(self, indent, pre, post)#
ak.contents.UnmaskedArray.to_IndexedOptionArray64(self)#
ak.contents.UnmaskedArray.to_ByteMaskedArray(self, valid_when)#
ak.contents.UnmaskedArray.to_BitMaskedArray(self, valid_when, lsb_order)#
ak.contents.UnmaskedArray.mask_as_bool(self, valid_when=True)#
ak.contents.UnmaskedArray._getitem_nothing(self)#
ak.contents.UnmaskedArray._is_getitem_at_placeholder(self)#
ak.contents.UnmaskedArray._getitem_at(self, where)#
ak.contents.UnmaskedArray._getitem_range(self, start, stop)#
ak.contents.UnmaskedArray._getitem_field(self, where, only_fields=())#
ak.contents.UnmaskedArray._getitem_fields(self, where, only_fields=())#
ak.contents.UnmaskedArray._carry(self, carry, allow_lazy)#
ak.contents.UnmaskedArray._nextcarry_outindex(self)#
ak.contents.UnmaskedArray._getitem_next_jagged(self, slicestarts, slicestops, slicecontent, tail)#
ak.contents.UnmaskedArray._getitem_next(self, head, tail, advanced)#
ak.contents.UnmaskedArray.project(self, mask=None)#
ak.contents.UnmaskedArray._offsets_and_flattened(self, axis, depth)#
ak.contents.UnmaskedArray._mergeable_next(self, other, mergebool)#
ak.contents.UnmaskedArray._reverse_merge(self, other)#
ak.contents.UnmaskedArray._mergemany(self, others)#
ak.contents.UnmaskedArray._fill_none(self, value)#
ak.contents.UnmaskedArray._local_index(self, axis, depth)#
ak.contents.UnmaskedArray._numbers_to_type(self, name, including_unknown)#
ak.contents.UnmaskedArray._is_unique(self, negaxis, starts, parents, outlength)#
ak.contents.UnmaskedArray._unique(self, negaxis, starts, parents, outlength)#
ak.contents.UnmaskedArray._argsort_next(self, negaxis, starts, shifts, parents, outlength, ascending, stable)#
ak.contents.UnmaskedArray._sort_next(self, negaxis, starts, parents, outlength, ascending, stable)#
ak.contents.UnmaskedArray._combinations(self, n, replacement, recordlookup, parameters, axis, depth)#
ak.contents.UnmaskedArray._reduce_next(self, reducer, negaxis, starts, shifts, parents, outlength, mask, keepdims, behavior)#
ak.contents.UnmaskedArray._validity_error(self, path)#
ak.contents.UnmaskedArray._nbytes_part(self)#
ak.contents.UnmaskedArray._pad_none(self, target, axis, depth, clip)#
ak.contents.UnmaskedArray._to_arrow(self, pyarrow, mask_node, validbytes, length, options)#
ak.contents.UnmaskedArray._to_cudf(self, cudf, mask, length)#
ak.contents.UnmaskedArray._to_backend_array(self, allow_missing, backend)#
ak.contents.UnmaskedArray._remove_structure(self, backend, options)#
ak.contents.UnmaskedArray._drop_none(self)#
ak.contents.UnmaskedArray._recursively_apply(self, action, depth, depth_context, lateral_context, options)#
ak.contents.UnmaskedArray.to_packed(self, recursive=True)#
ak.contents.UnmaskedArray._to_list(self, behavior, json_conversions)#
ak.contents.UnmaskedArray._to_backend(self, backend)#
ak.contents.UnmaskedArray._is_equal_to(self, other, index_dtype, numpyarray, all_parameters)#