Reputation: 55
I have a data frame named red_data_frame
. Each row has a unique index value spanning from 1 to 54075
. What I need to do is to iterate through each value and delete the row if it is immediately sequential. For example:
1
721
722
...
Delete 722
...
1442
1443
...
Delete 1443
etc...
The new dataframe should remove all rows that meet this condition.
Upvotes: 0
Views: 59