79297076

Date: 2024-12-20 11:32:57
Score: 1
Natty:
Report link

The error you get is because you mixed loc and iloc, with .loc you need to use the column name and not its index. Just replace your last line by:

df.iloc[num, 1] = df.iloc[num, 0]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rehaqds