system.dataset.addColumn(dataset, [colIndex], col, colName, colType)
Dataset dataset - The starting dataset. Please be aware that this dataset will not actually be modified (datasets are immutable), but rather will be the starting point for creating a new dataset.
Integer colIndex - The index (starting at 0) at which to insert the new column. Will throw an IndexError if less than zero or greater than the length of the dataset. If omitted, the new column will be appended to the end. [optional]
List[Any] col - A Python sequence representing the data for the new column. Its length must equal the number of rows in the dataset.
String colName - The name of the column.
Type colType - The type of the of the column. The type can be a Python builtin type, such as
float, or a Java class, such as
Dataset - A new dataset with the new column inserted or appended.
Gateway, Vision Client, Perspective Session