79786890

Date: 2025-10-09 22:34:05
Score: 1
Natty:
Report link

This happens because pandas optimizes away copies when one input is empty, so they share the same memory.
To prevent linkage without forcing a deep copy, enable Copy-on-Write in pandas 2.x:

pd.options.mode.copy_on_write = True
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: fateme mosleh