Skip to content

Instantly share code, notes, and snippets.

@pvarsh
Created February 20, 2015 19:15
Show Gist options
  • Save pvarsh/81f74b58e82506829737 to your computer and use it in GitHub Desktop.
Save pvarsh/81f74b58e82506829737 to your computer and use it in GitHub Desktop.
### Removes all rows that are identically ''
import parsekit
class FilterEmptyRows(parsekit.Step):
def run(self, record, metadata):
criterion = {'', None}
if not set(record).issubset(criterion):
return record, metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment