So I've been thinking of different solutions for creating a pandas index where the number corresponds to the row number. I think I'm either overthinking it or missing some god simple solution. I've spent way to many hours thinking of this.
As of now I'm doing it with a for loop running through df.iterrows(), adding each iteration into a list, then adding the list to pandas, then making that the index.
What I have:
apple 5 3
banana 3 2
pear 4 5
what I want:
1 Apple 5 3
2 Banana 3 2
3 Pear 4 5