Skip to content

dataFrameWithField

dataFrameWithField(frame, field, compute): DataFrame

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

A copy of the frame with one more column, computed per row.

O(r × cost of compute). This is how a derived quantity — a ratio to the fastest row, a share of a total, a rank — becomes a field, so a table and a chart read it the same way instead of each recomputing it.

DataFrame

FieldDescriptor

(frame, rowIndex) => Value

DataFrame