Table of Contents
Row
Row data structure used into the dataframe-js.
Parameters
toDict
Convert Row into dict / hash / object.
Examples
row.toDict()
Returns Object The Row converted into dict.
toArray
Convert Row into Array, loosing column names.
Examples
row.toArray()
Returns Array The Row values converted into Array.
size
Get the Row size.
Examples
row.size()
Returns Int The Row length.
hash
Get the Row hash code.
Examples
row.hash()
Returns Int The Row hash unique code.
has
Check if row contains a column.
Parameters
columnNameString The column to check.
Examples
row.has('column1')
Returns Boolean The presence or not of the column.
select
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
Get a Row value by its column.
Parameters
columnToGetString The column value to get.
Examples
row.get('column1')
Returns any The selected value.
set
Set a Row value by its column, or create a new value if column doesn't exist.
Parameters
columnToSetString The column value to set.value
Examples
row.set('column1', 6)
Returns Row A new Row with the modified / new value.
delete
Delete a Row value by its column.
Parameters
columnToDelString The column value to delete.
Examples
row.delete('column1')
Returns Row A new Row without the deleted value.