Getting a random sample from your pandas data frame

Опубликовано: 27 Февраль 2022
на канале: Python and Pandas with Reuven Lerner
12,229
251

Working with Python's pandas library for data analytics? If your data set is very large, you might sometimes want to work with a random subset of it. The "sample" method is perfect for that. In this video, I demonstrate the ways in which you can use the "sample" method on your data frames to get back precisely the number (or fraction) of rows you want.

Jupyter notebooks for all of my videos are at https://github.com/reuven/youTube-not....

And don't forget to sign up for my free, weekly Python newsletter at https://BetterDevelopersWeekly.com/!