Skip to content

dataFrameDropEmptyFields

dataFrameDropEmptyFields(frame): DataFrame

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

A frame carrying only the fields that hold at least one non-null cell.

O(r × f) worst case, less when a column has an early non-null. Columns are shared with the source frame, not copied. Applied by the caller and never by a renderer: a stable schema is sometimes the point, as it is for CSV headers.

DataFrame

DataFrame