How to sample a Data frame

I’m not sure I understand - do you want to sample 100 rows from a 1,000 row DataFrame? Or do you want to draw 1,000 samples of length 100 from a larger data set? My suggestion above can work in both cases, can you clarify what you’re looking for (and what isn’t working for you) ideally by way of a minimal working example?

1 Like