[python] Update index after sorting data-frame