Pandas - Random Sample of a subset of a DataFrame - rows or columns This post describes how to DataFrame sampling in Pandas works:
Pandas How to create DataFrame with Random Values N x M Python and Pandas are very useful when you need to