How to reset index without printing the rows?

  python-3.x

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

Source: Python-3x Questions

LEAVE A COMMENT