I have a DataFrame in pandas like the one below.
After deleting several columns and rows, the index and columns are not longer a continuous range.
How could it set it back to 0 -> n? I tried reset_index without success.
4 12 15 22
5
9
14
26
31
37
expected output:
0 1 2 3
0
1
2
3
4
5