implement a function to ignore some columns when creating csv files