Skip to content

Instantly share code, notes, and snippets.

@pvarsh
Created February 20, 2015 19:14
Show Gist options
  • Save pvarsh/74d364df295819065ad9 to your computer and use it in GitHub Desktop.
Save pvarsh/74d364df295819065ad9 to your computer and use it in GitHub Desktop.
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