A related question that someone just asked here on Discourse that I think is very connected to the discussion here: How to sample a Data frame Observe how most people interpret a dataframe like I mentioned above. Pandas has sampling methods to sample “observations” of a dataframe that are stored as rows: pandas.DataFrame.sample — pandas 1.4.4 documentation