ak.without_field — Awkward Array 2.8.2 documentation (original) (raw)

Defined in awkward.operations.ak_without_field on line 18.

ak.without_field(array, where, *, highlevel=True, behavior=None, attrs=None)#

Parameters:

Returns an ak.Array or ak.Record (or low-level equivalent, ifhighlevel=False) with an existing field removed. This function does not change the array in-place.

See ak.Array.__delitem__ and ak.Record.__delitem__ for a variant that changes the high-level object in-place. (These methods internally useak.without_field, so performance is not a factor in choosing one over the other.)