code: def filter_rows_as_dict(fname, filter_, **kw):
      
      filter_ = DictFilter(filter_)
      rewrite(fname, filter_, **kw)
      return filter_.removed
docs: Rewrite a dsv file, filtering the rows.
  
      :param fname: Path to dsv file
      :param filter_: callable which accepts a `dict` with a row's data as single argument\
      returning a `Boolean` indicating whether to keep the row (`True`) or to discard it \
      `False`.
      :param kw: Keyword arguments to be passed `UnicodeReader` and `UnicodeWriter`.
      :return: The number of rows that have been removed.