Skip to content

findDataFrameFieldIndexByName

findDataFrameFieldIndexByName(frame, name): number

Defined in: packages/model-dataset/src/frame/data-frame.ts:63

Position of a field within the frame, or -1.

O(n) in the field count, which is small; a caller resolving many names should build its own index once instead of calling this in a loop.

DataFrame

string

number