Problem to filter dataset

def filter_dataset(ds, condition):
	return system.dataset.toDataSet(list(ds.columnNames), filter(condition, system.dataset.toPyDataSet(ds)))

filter_dataset(ds, lambda row: row['zone'] == 'A')
1 Like