Open akariv opened 5 years ago
Filter rows using a callable in Python's built in filter. This is very useful and can be reused. It might make sense to merge with dataflows.filter_rows. h/t @shevron
filter
dataflows.filter_rows
def filter_rows_callable(cb): def f(rows): yield from filter(cb, rows) return f
Filter rows using a callable in Python's built in
filter
. This is very useful and can be reused. It might make sense to merge withdataflows.filter_rows
. h/t @shevron