I'm not very familiar with python but I need to fix a script which throws a syntax error in version 2.6. Can anybody help to explain the problem?
import pandas as pd
....
d = pd.read_csv(csv_filename, skiprows=skip).to_dict()
d = {k: d[k].values() for k in d}
This is the error message:
d = {k: d[k].values() for k in d}
^
SyntaxError: invalid syntax