I need to be able to iterate over rows and perform some manipulations. Below is the start of some code.
for i, row in df.iterrows():
df.loc[i, 'Object'] = row
The performance is ridiculously slow and I get the following output:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
What am I doing wrong?