i am using the answer from Pandas SettingWithCopyWarning in my script but it returned me 'SettingWithCopyWarning', may i know how should i fix it?
attemped1: dff['changed'] = dff.col1.ne(dff.col1.shift(1)) attemped2: dff.loc[:, 'changed] = dff.col1.ne(dff.col1.shift(1))