Kevin Markham on X: "🐼🤹♂️ pandas trick: Randomly sample rows from a DataFrame: df.sample(n=10) df.sample(frac=0.25) Useful parameters: ➡️ random_state: use any integer for reproducibility ➡️ replace: sample with replacement ➡️ weights: weight
Pandas - Random Sample of Columns - Data Science Parichay