Combine Group and Sort
General Info
Useful Snippets

11.0.8 Get random sample of X rows

Example:

# Return a ransom sample of 'n' rows
DF.sample(n=2, random_state=1)