DataFrame
Defined in: js-api/src/dataframe/data-frame.ts:48
DataFrame is a high-performance, easy to use tabular structure with strongly-typed columns of different types.
In the API, the terms "Table" and "DataFrame" are used interchangeably.
Usage samples: https://public.datagrok.ai/js/samples/data-frame/modification/manipulate Usage details: https://datagrok.ai/help/develop/advanced/data-frame Implementation details: https://datagrok.ai/help/develop/admin/architecture#in-memory-database
Constructors
Constructor
new DataFrame(
dart):DataFrame
Defined in: js-api/src/dataframe/data-frame.ts:64
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
DataFrame
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
_meta | public | DataFrameMetaHelper | undefined | - | js-api/src/dataframe/data-frame.ts:60 |
columns | public | ColumnList | Columns of the table. | js-api/src/dataframe/data-frame.ts:51 |
dart | readonly | any | - | js-api/src/dataframe/data-frame.ts:49 |
filter | public | BitSet | Filter mask: rows currently passing all filters. | js-api/src/dataframe/data-frame.ts:55 |
rows | public | RowList | Rows of the table. | js-api/src/dataframe/data-frame.ts:53 |
tags | public | MapBag<string> | Metadata as string key-value pairs; persisted with the table. | js-api/src/dataframe/data-frame.ts:59 |
temp | public | any | Auxiliary data that is not persisted (a MapBag: indexed access plus the map methods; typed any so it can be cast to a package's own shape). | js-api/src/dataframe/data-frame.ts:57 |
Accessors
currentCell
Get Signature
get currentCell():
Cell
Defined in: js-api/src/dataframe/data-frame.ts:328
Current cell. Sample: https://public.datagrok.ai/js/samples/data-frame/events/current-elements
Returns
Set Signature
set currentCell(
cell):void
Defined in: js-api/src/dataframe/data-frame.ts:334
Current cell. Sample: https://public.datagrok.ai/js/samples/data-frame/events/current-elements
Parameters
| Parameter | Type |
|---|---|
cell | Cell |
Returns
void
currentCol
Get Signature
get currentCol():
Column
Defined in: js-api/src/dataframe/data-frame.ts:316
Current column. Sample: https://public.datagrok.ai/js/samples/data-frame/events/current-elements
Returns
Set Signature
set currentCol(
col):void
Defined in: js-api/src/dataframe/data-frame.ts:322
Current column. Sample: https://public.datagrok.ai/js/samples/data-frame/events/current-elements
Parameters
| Parameter | Type |
|---|---|
col | Column |
Returns
void
currentRow
Get Signature
get currentRow():
Row
Defined in: js-api/src/dataframe/data-frame.ts:303
Current row. Sample: https://public.datagrok.ai/js/samples/data-frame/events/current-elements
Returns
Set Signature
set currentRow(
row):void
Defined in: js-api/src/dataframe/data-frame.ts:304
Parameters
| Parameter | Type |
|---|---|
row | Row |
Returns
void
currentRowIdx
Get Signature
get currentRowIdx():
number
Defined in: js-api/src/dataframe/data-frame.ts:307
Index of the current row.
Returns
number
Set Signature
set currentRowIdx(
idx):void
Defined in: js-api/src/dataframe/data-frame.ts:308
Parameters
| Parameter | Type |
|---|---|
idx | number |
Returns
void
dialogs
Get Signature
get dialogs():
DataFrameDialogHelper
Defined in: js-api/src/dataframe/data-frame.ts:154
Standard dialogs for this table.
Returns
id
Get Signature
get id():
string
Defined in: js-api/src/dataframe/data-frame.ts:551
Id of the dataframe.
Returns
string
Set Signature
set id(
id):void
Defined in: js-api/src/dataframe/data-frame.ts:555
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void