shapelets.DataSet.split_by_column#

DataSet.split_by_column(colname: str) Dict[str, DataSet]#

This method returns a dictionary of DataSet, each of them corresponding to the different entries of a specific column (colname).

Examples

>>> df = session.load_test_data()
>>> df.split_by_column('Class')
{('Iris-setosa',): <shapelets._relations.DataSet object at 0x7f3a9e57bf00>, 
('Iris-versicolor',): <shapelets._relations.DataSet object at 0x7f3a9e57ba80>, 
('Iris-virginica',): <shapelets._relations.DataSet object at 0x7f3a9e57bd40>}