What i want to do should be very simple. Essentially, I have some dataframe, I need assign some tuple value to some column.
for example:
pd_tmp = pd.DataFrame(np.random.rand(3,3))
pd_tmp["new_column"] = ("a",2)
I just need a new column with tuple value, what should i do?
ValueError: Length of values does not match length of index
The previous code gets the error.