This abstraction will present the contents of a DataFrame as if it were a well typed javascript object Vector.
Signature
Import
The is optimized for use in a loop and will return same object. See function for more details.
Constructors
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
dataFrame | DataFrame | (BETA) | |
{ readonly [Property in keyof T]: Field<T[Property]>; } | (BETA) | ||
length | number | (BETA) |
Methods
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Constructs a new instance of the DataFrameView
class
Signature
constructor(data: DataFrame);
Parameter | Type | Description |
---|---|---|
data |
dataFrame property
Signature
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature
readonly fields: {
readonly [Property in keyof T]: Field<T[Property]>;
};
length property
Signature
get length(): number;
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The contents of the object returned from this function are optimized for use in a loop. All calls return the same object but the index has changed.
Signature
Parameters
T
const first = view.get(0);
const third = view.get(2);
// If you need three different objects, consider something like:
const first = { ...view.get(0) };
const second = { ...view.get(1) };
getFieldDisplayProcessor method
Helper function to return the DisplayProcessor for a given field column.
Signature
getFieldDisplayProcessor(colIndex: number): DisplayProcessor | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
colIndex | number | the field column index for the data frame. |
Returns:
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature
Returns: