# How to sample a Data frame

**URL:** <https://discourse.julialang.org/t/how-to-sample-a-data-frame/32791>\
**Category:** General Usage\
**Created:** [December 30, 2019, 10:06am UTC](https://discourse.julialang.org/t/how-to-sample-a-data-frame/32791 "2019-12-30T10:06:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [December 30, 2019, 10:30am UTC](https://discourse.julialang.org/t/how-to-sample-a-data-frame/32791/4 "2019-12-30T10:30:44Z")

</div>

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](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-sample-a-data-frame/32791)._
