Random Sample of a subset of a dataframe in Pandas
Random Sample of a subset of a dataframe in Pandas Question: I have a pandas DataFrame with 100,000 rows and want to split it into 100 sections with 1000 rows in each of them. How do I draw a random sample of certain size (e.g. 50 rows) of just one of the 100 sections? The …