79797944

Date: 2025-10-23 15:00:00
Score: 0.5
Natty:
Report link

Using tail method (docs) works.

last_row = a.tail(1)
last_row.loc[:, 'a'] = 4.0

Apparently it has to be separated into two instructions, because it raises the following warning otherwise:

FutureWarning: ChainedAssignmentError: behaviour will change in pandas 3.0!
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nicolas LIENART