Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to reindex the rows in excel using python

I have a modifed df but the rows index is changed so how to let it start from 0 and so on

Example :

2 Mc-system commercial

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

3 Mf-System educational

20 Mk-system fundemntal

I want it to be like this :

0 Mc-system commercial

1 Mf-System educational

2 Mk-system fundemntal

So that the row index is organized

>Solution :

use
dataframe.reset_index

df.reset_index(drop=True)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading