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
  • 729,927
  • 78
  • 1,141
  • 1,090