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

after merging two dataframes, how to reassign row index?

$
0
0

I merged two dataframes but I want to re-sort the index so it has a sequentially larger row number by 1. So for example below, the 3162 should be 281, and so on...

278  2024-05-08 09:18:40.224469054 279  2024-05-08 09:18:40.224786435 280  2024-05-08 09:18:40.225303505  3162 2024-05-08 09:18:40.236961521  281  2024-05-08 09:18:40.242515680  282  2024-05-08 09:18:40.242732668    

merged two dataframes, did not work as expected to get sorted row values


Viewing all articles
Browse latest Browse all 447

Trending Articles