Nicky Nicolson commited on
Commit
e57384a
1 Parent(s): 6d85436

skip bad lines

Browse files
Files changed (1) hide show
  1. tab2csv.py +5 -1
tab2csv.py CHANGED
@@ -7,5 +7,9 @@ if __name__ == '__main__':
7
  parser.add_argument("outputfile")
8
  args = parser.parse_args()
9
 
10
- df = pd.read_csv(args.inputfile, encoding='utf8', keep_default_na=False, sep='\t')
 
 
 
 
11
  df.to_csv(outputfile, index=False, sep=',')
 
7
  parser.add_argument("outputfile")
8
  args = parser.parse_args()
9
 
10
+ df = pd.read_csv(args.inputfile,
11
+ encoding='utf8',
12
+ keep_default_na=False,
13
+ on_bad_lines='skip',
14
+ sep='\t')
15
  df.to_csv(outputfile, index=False, sep=',')