- DataFile.filter(func=None, cols=None, reset=True)¶
Set the mask on rows of data by evaluating a function for each row.
func (callable) – is a callable object that should take a single list as a p[arameter representing one row.
cols (list) – a list of column indices that are used to form the list of values passed to func.
reset (bool) – determines whether the mask is reset before doing the filter (otherwise rows already masked out will be ignored in the filter (so the filter is logically or’d)) The default value of None results in a complete row being passed into func.
self – The current
DataFileobject with the mask set