Skip to content

Instantly share code, notes, and snippets.

@munk
Created July 24, 2017 17:28
Show Gist options
  • Save munk/898fcf68fe60584b6e030f27afd650c1 to your computer and use it in GitHub Desktop.
Save munk/898fcf68fe60584b6e030f27afd650c1 to your computer and use it in GitHub Desktop.
import csv
filename = '/full/path/tofile/'
with open(filename, 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter=' ', quotechar='|')
result = [row for row in reader if 'N/A' in reader]
print result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment