I have a pandas Series that goes by 5 in indexes like the image;
I want to transform this Pandas Series to;
...
3652 21.053699
Can I transform my Pandas series like that without creating a new series?
Resetting the index with drop=True
will replace it with the default 0-indexed integer index:
y_pred = y_pred.reset_index(drop=True)