Spaces:
Runtime error
Runtime error
File size: 457 Bytes
abf8c49 e57384a abf8c49 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import argparse
import pandas as pd
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("inputfile")
parser.add_argument("outputfile")
args = parser.parse_args()
df = pd.read_csv(args.inputfile,
encoding='utf8',
keep_default_na=False,
on_bad_lines='skip',
sep='\t')
df.to_csv(outputfile, index=False, sep=',') |