ak.layout.Record — Awkward Array documentation

# ak.layout.Record

Represents a single value from a ak.layout.RecordArray.

As this is a columnar representation, the Record contains a ak.layout.RecordArray, rather than the other way around. Its two fields are

> - `array`: the ak.layout.RecordArray and

> - `at`: the index posiion where this Record is found.

The Record shares a reference with its ak.layout.RecordArray; it is not a copy (not even a shallow-copied node object).

A ak.layout.Record node has the following properties and methods. See their definitions in ak.layout.Content and ak.layout.RecordArray as a guide. They pass through to the underlying `array` with adjustments in some cases because Record is a scalar.

## ak.layout.Record.__init__

ak.layout.Record.__init__(array, at)

## ak.layout.Record.array

ak.layout.Record.array

## ak.layout.Record.at

ak.layout.Record.at

## ak.layout.Record.__getitem__

ak.layout.Record.__getitem__(where)

## ak.layout.Record.__repr__

ak.layout.Record.__repr__()

## ak.layout.Record.field

ak.layout.Record.field(index)

## ak.layout.Record.field

ak.layout.Record.field(key)

## ak.layout.Record.fieldindex

ak.layout.Record.fieldindex(key)

## ak.layout.Record.fielditems

ak.layout.Record.fielditems()

## ak.layout.Record.fields

ak.layout.Record.fields()

## ak.layout.Record.haskey

ak.layout.Record.haskey(key)

## ak.layout.Record.keys

ak.layout.Record.keys()

## ak.layout.Record.parameter

ak.layout.Record.parameter(arg0)

## ak.layout.Record.purelist_parameter

ak.layout.Record.purelist_parameter(arg0)

## ak.layout.Record.setparameter

ak.layout.Record.setparameter(arg0, arg1)

## ak.layout.Record.simplify

ak.layout.Record.simplify()

## ak.layout.Record.tojson

ak.layout.Record.tojson(pretty=False, maxdecimals=None)

## ak.layout.Record.tojson

ak.layout.Record.tojson(destination, pretty=False, maxdecimals=None, buffersize=65536)

## ak.layout.Record.type

ak.layout.Record.type(arg0)

## ak.layout.Record.astuple

ak.layout.Record.astuple

## ak.layout.Record.identities

ak.layout.Record.identities

## ak.layout.Record.identity

ak.layout.Record.identity

## ak.layout.Record.istuple

ak.layout.Record.istuple

## ak.layout.Record.numfields

ak.layout.Record.numfields

## ak.layout.Record.parameters

ak.layout.Record.parameters