How do I add a new value to a pandas series?
I made the copy of the dataframe series and now I need to add a new value to the swap_hoje
series, however, instead of being at the end of the series, I need it to be at the beginning, at index 0
.
swap_hoje = swap_dataframe['Valor'].reset_index(drop=True)
I also need to add a value in the string swap_ontem
:
swap_ontem = swap_dataframe['Valor'].reset_index(drop=True)
However, in the latter, it will have to be at the end of the series.