The easiest way to randomly select rows from a Pandas dataframe is to use the sample() method. For example, if your dataframe is called "df", df.sample(n=250) will result in that 200 rows were selected randomly. Note, removing the n parameter will result in one random row instead of multiple rows.