79777518

Date: 2025-09-28 18:28:57
Score: 1
Natty:
Report link

You could use a join,

right = df.select(pl.row_index("index")+1, pl.col("ref").alias("ref[index]"))

df.join(right, left_on="idx", right_on="index")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: etrotta