Table of Contents

Row

src/row.js:11-185

Row data structure used into the dataframe-js.

Parameters

toDict

src/row.js:78-80

Convert Row into dict / hash / object.

Examples

row.toDict()

Returns Object The Row converted into dict.

toArray

src/row.js:88-90

Convert Row into Array, loosing column names.

Examples

row.toArray()

Returns Array The Row values converted into Array.

size

src/row.js:98-100

Get the Row size.

Examples

row.size()

Returns Int The Row length.

hash

src/row.js:108-110

Get the Row hash code.

Examples

row.hash()

Returns Int The Row hash unique code.

has

src/row.js:119-121

Check if row contains a column.

Parameters

  • columnName String The column to check.

Examples

row.has('column1')

Returns Boolean The presence or not of the column.

select

src/row.js:130-140

Select columns into the Row.

Parameters

  • columnNames ...String The columns to select.

Examples

row.select('column1', 'column2')

Returns Row A new Row containing only the selected columns.

get

src/row.js:149-154

Get a Row value by its column.

Parameters

  • columnToGet String The column value to get.

Examples

row.get('column1')

Returns any The selected value.

set

src/row.js:163-168

Set a Row value by its column, or create a new value if column doesn't exist.

Parameters

  • columnToSet String The column value to set.
  • value

Examples

row.set('column1', 6)

Returns Row A new Row with the modified / new value.

delete

src/row.js:177-184

Delete a Row value by its column.

Parameters

  • columnToDel String The column value to delete.

Examples

row.delete('column1')

Returns Row A new Row without the deleted value.

results matching ""

    No results matching ""