Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 477

How do I remove first row from pandas Dataframe that contains repeats of the column names and then reset the index? [closed]

$
0
0

When I preview my Panda's DataFrame, I get a row of my column names at index 0. I drop the row and then try to reset the index (df.reset_index(drop=True) and and then it reinserts this row with the column names at index 0. Any thoughts of how I can reset the index without this row coming back? TIA.enter image description here

I dropped the row of column names and then reset the index, but it just brought back the row of column names.


Viewing all articles
Browse latest Browse all 477

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>