0

I know that

df.iloc[-1] shows only the last row, 

1 Answers1

0

You can check slice notation for list, same principe is used here.

So

df.iloc[-10:,:]

show(select) last 10 rows, same ouput is if use DataFrame.tail:

df.tail(10)
jezrael
  • 822,522
  • 95
  • 1,334
  • 1,252