Module

input_util

Methods

# static colToRowData(data) → {RowData}

Converts object-based dataframe to array-based dataframe.

Parameters:
Name Type Description
data ColumnData

an object with each property representing dataframe column as an array. Columns are of the same length

View Source input_util.js, line 10

  • array of objects with properties corresponding to columns
RowData

# static ensureRowData(objects) → {Array.<Object>}

Convenience function to convert potential column-based dataframes to row-based dataframes.

Parameters:
Name Type Description
objects Array.<Object>

potential objects to convert to row-based dataframes. Only converts objects, skips arrays

View Source input_util.js, line 47

  • array of converted objects
Array.<Object>

# static rowToColData(data) → {ColumnData}

Converts array-based dataframe to object-based dataframe.

Parameters:
Name Type Description
data RowData

an array of objects with properties

View Source input_util.js, line 31

  • object with each property representing dataframe column as an array, values are preserved in the same order as in the input array
ColumnData