Regex Select Columns

By for October 20, 2016

71 views
29 downloads

Language

Report Abuse
Select columns by applying regular expression on column names.
This module allows you to select columns by applying regular expression to column names. For example, if you have an input dataset with the following columns: id, name, sensor-1, sensor-2, sensor-3, sensor-..., time-stamp You can select all sensor value columns by applying regular expression: sensor-\d It outputs 2 datasets, one consisted of all columns with names matching the regular expression, i.e., starting with "sensor-" plus a single digit, and the other the unmatched columns. Source code for this custom module is in [GitHub](https://github.com/Azure/custmod/tree/master/RegexSelectColumns).