datasource.csv
Returns the specified csv file as an object. The returned object has multiple functions that are documented in CSV Writer. A file may only have one instance of a CSV writer or CSV reader connected at a time. A new attempt at a reader or writer connection will result in an error.
js
datasource.csv(fileName)
Parameters
fileName
- The name and file path of the csv file in MODLR file system to be read. File path can be found in the filesystem page.
Example
js
let csv = datasource.csv("budget_review_2020.csv");