I tried to do:
input1['Signature_Fixed'] = 'NONE' 
i = 0
for row in input1['Signature']:
  if (row == 'Competitor'):
    input1['Signature_Fixed'][i] = input1['brand'][i]
  else:
    input1['Signature_Fixed'][i] = input1['Signature'][i]
  i = i + 1
When I am doing on 1K rows, it works but I have SettingWithCopyWarning then when I am doing on 2M rows, is not working.
Could you please help me to fix that and maybe to convert it with loc/iloc?
 
     
    