Given the following CSV file, how would you remove all rows that contain the word \'true\' in the column \'foo\'?
Date,foo,bar 2014/10/31,true,derp 2014/10/
You might want to filter rows in a ruby manner:
require 'csv' csv = CSV.parse(File.read(@csvfile), { :col_sep => ",", :headers => true } ).collect { |item| item[:foo] != 'true' }
Hope it help.