Question: `Dataframe.resample()` works only with timeseries data. I cannot find a way of getting every nth row from non-timeseries data. What is the best method?

Answer: 
I'd use `iloc`, which takes a row/column slice, both based on integer position and following normal python syntax. If you want every 5th row:

```
df.iloc[::5, :]

```
```
df.drop(labels=df[df.index % 3 != 0].index, axis=0) #  every 3rd row (mod 3)

```