dataset module.
- Source:
Methods
(static) inferTypes(data, strict) → {object}
- Source:
Types guessing
Parameters:
| Name | Type | Description |
|---|---|---|
data |
array | data to be parsed (list of objects) |
strict |
boolean | if strict is false, a JSON parsing of the values is tried. (if strict=false: "true" -> true) |
Returns:
the types guessed (object with column names as keys and value type as value)
- Type
- object
(static) parseDataset(data, types) → {ParserResult}
- Source:
Dataset parser
Parameters:
| Name | Type | Description |
|---|---|---|
data |
array | data to be parsed (list of objects) |
types |
object | optional column types |
Returns:
dataset, dataTypes, errors
- Type
- ParserResult