ResetIndexes
Some dataframe operations appear to modify the row order of a dataframe. However, the actual index column is not changed and results in processes not following the apparent desired order. ResetIndexes writes code to reorder the indexes from 0 to n to match what you see visuallize.
Examples
Example 1 - Reset Row Indexes After Row Removal
When rows are removed from a DataFrame, or shuffled, the index values can become non-sequential or inconsistent. Use ResetIndexes to reassign the row indexes so they start from 0 and increase sequentially again.
#> ResetIndexes
AFLEFT
bankTransactionsDf = bankTransactionsDf.reset_index(drop=True) AFRIGHT