79236557

Date: 2024-11-29 09:50:31
Score: 0.5
Natty:
Report link

Here is how to do it using tail.

result = index.tail(10).iloc[:, :2]

.tail(10): Returns the last 10 rows of the DataFrame

.iloc[:, :2]: Selects all rows (:) but only the first two columns (:2)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: samhita