Pandas Add Index Column To Dataframe Function In R