I use a lot of tuples in my data files as record keys. When I load a table from text the tuples are strings in the dataframe.
I convert to tuple now, using:
df['KEY'] = df['KEY'].map(lambda x: eval(x))
Is it possible to get the string evaluation automatically?
Luc