shapelets.DataSet.rewrite_col#

DataSet.rewrite_col(idx: int, col: str) tuple#

It takes idx (index) and col (colname) as params and returns a tuple (idx,new_col) where:

  • idx: new

  • value: col but replacing not allowed chars by (‘_’)

If all chars in col are allowed it returns None

Parameters:
idx: int

Index of the column

col: string

Name of the column to rewrite

Returns:
tuple: (idx,new_col)
idx: int

Index of the column

new_col: string

Name of the column rewritten, where special characters have been replaced by character ‘_’