Add a tuple to a specific cell of a pandas dataframe
set_value is deprecated.
you can just use .at[] or iat[]
e.g. some_df.at[ idx, col_name] = any_tuple
You can use set_value
:
tempDF.set_value(i,'newTuple', anyOldTuple)
Also make sure that the column is not a float column, for example:
tempDF['newTuple'] = 's' # or set the dtype
otherwise you will get an error.