When I do this, this statement prints all 18 000 rows. I want to execute without printing. data.reset_index(drop=True)
data.reset_index(drop=True)