I have a dataframe stored in the variable \'cars\'.
dummy = cars.sample(5) for i in dummy.index: print(i)
This gives no error and prints