shapelets.DataSet.add_column#

DataSet.add_column(colname: str, *genExpr: generator) DataSet#

Adds a new column (colname) to the Dataset and returns the new Dataset. The content of this new column is computed according to a lambda function (func)

Examples

>>> df.add_column('new_feature', lambda row: row**2)