Randomly Select Rows from Pandas DataFrame

PHOTO EMBED

Wed Dec 14 2022 10:33:51 GMT+0000 (Coordinated Universal Time)

Saved by @lahiruaruna

df = df.sample(n=3)
content_copyCOPY

https://datatofish.com/random-rows-pandas-dataframe/