title: Filtering CSV rows by specific column data
body: <p>I'd like to filter a CSV file (without headers) containing hundreds of rows based on the value in column 12. Values that filter these rows contain data like "00GG", "05FT", "66DM" and 10 more.</p>
  
  <p>With the code below I'm able to print rows based on one criteria:</p>
  
  <pre><code>def load_source(filename):
      with open(filename, "r") as f:
          reader = csv.reader(f, delimiter=";")
          return list(reader)
  
  sourcecsv = load_source("data1.csv")
  
  for row in sourcecsv:
      if row[12] == "00GG":
          print(row)
  </code></pre>
  
  <p>Since the filtering of data(1.csv) is important for any queries later on, I assume it would be wise to include it already in the function load_source. I tried to do a similar "for row.. if row[12]" loop like above with a list of criteria instead of one string and append it to a new list but I got an empty list whenever I tried to print(sourcecsv) afterwards. Thanks for any help.</p>