0

I have a dataframe which is made with 4 columns like this

enter image description here

As you can see the "indexing" (row number) is not correct. Is there a way start it from 0 and increase it?

1
  • df = df.reset_index(drop=True) Commented Apr 24, 2024 at 14:09

1 Answer 1

2
df.reset_index(drop = True, inplace = True) 

should work fine

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.