Use of Numpy random seed and random_state in train_test split function – Limitless Data Science
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 DataFrame.sample() | How Pandas DataFreame.sample() work?