I am running a script with Python 2.7 using pandas to read from 2 csv files. I keep getting "invalid syntax" error messages, particularly on line 6 and 8. I can't figure out where is the problem, since line 6 is almost identical to line 5 and there I don't get any error. Thanks very much for your help !
import numpy as np
import csv as csv
import pandas as pd
da = pd.read_csv('snp_rs.csv', index_col=(0,1), usecols=(0, 1), header=None, converters = dict.fromkeys([0,1])
db = pd.read_csv('chl.map.csv', index_col=(0,1), usecols=(0,1), header=None, converters = dict.fromkeys([0,1])
result = da.join(db, how='inner')
x = result.to_csv('snp_rs_out.csv', header=None) # write as csv
print x
()in pd.read)until it starts to process the next line. It's ok to ask about typographical errors. We make those all the time.