i have the following dataframe:
volume
index
1 65
1 55
2 44
2 56
3 46
3 75
4 64
4 64
when i put the code df.iloc[-2:]
.it only shows the last two rows of my dataframe. example:
volume
index
4 64
4 64
i want to get the last two indices with the result below
volume
index
3 46
3 75
4 64
4 64
how do i go about it?