General Info
Import Export
Data Processing
Analysis
Machine Learning
Useful Snippets
×
- Combine DataFrame - Merge Join and Stack
- Group By
- Sort
- Return Limited set of rows
- Get Specific rows by index
- Custom Methods
11.0.8 Get random sample of X rows
Example:
# Return a ransom sample of 'n' rows
DF.sample(n=2, random_state=1)