system.dataset
Dataset Functionsβ
The following functions give you access to view and interact with datasets.
ποΈ addColumn
Takes a dataset and returns a new dataset with a new column added or inserted into it.
ποΈ addRow
Takes a dataset and returns a new dataset with a new row added or inserted into it.
ποΈ addRows
Takes a dataset and returns a new dataset with new rows added or inserted into it.
ποΈ appendDataset
Takes two different datasets and returns a new dataset with the second dataset appended to the first.
ποΈ clearDataset
Takes a dataset and returns a new dataset with all of the same column names, but all of the rows deleted.
ποΈ dataSetToHTML
Formats the contents of a dataset as an HTML page, returning the results as a string.
ποΈ deleteRow
Takes a dataset and returns a new dataset with a row removed.
ποΈ deleteRows
Takes a dataset and returns a new dataset with one or more rows removed.
ποΈ filterColumns
Takes a dataset and returns a view of the dataset containing only the columns found within the given list of columns.
ποΈ formatDates
Returns a new dataset with Date columns as strings formatted according to the dateFormat specified.
ποΈ fromCSV
Converts a dataset stored in a CSV formatted string to a dataset that can be immediately assignable to a dataset property in your project.
ποΈ getColumnHeaders
Takes in a dataset and returns the headers as a python list.
ποΈ setValue
Takes a dataset and returns a new dataset with one value altered.
ποΈ sort
Sorts a dataset and returns the sorted dataset.
ποΈ toCSV
Formats the contents of a dataset as CSV (comma separated values), returning the resulting CSV as a string.
ποΈ toDataset
This function is used to convert PyDatasets to datasets and create new datasets from raw Python lists. When creating a new dataset, headers should have unique names.
ποΈ toExcel
Formats the contents of one or more datasets as an Excel spreadsheet, returning the results as a byte array.
ποΈ updateRow
Takes a dataset and returns a new dataset with a one row altered.