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