I would like to print 10 last rows of my dataframe for February 2007, but not considering the last row.

The dataframe includes date as index with several columns including numerical values.

I have tried this approach so far:

```
df['2007-02'].iloc[:-1,:].last('10D')

```

Is there another way to print but ignore the last row? Rather than removing it. Also, by using this approach I get a futurewarning, are there other techniques I might use that won't be deprecated shortly?