I need some help as a I am a bit lost.
Lets suppose I have a column from a dataframe I need to be filled with certain elements from previous rows. To simplify things i ve made a pd.series:
lista = ['hola','salut','hello','xixie']
index1 = (0, 23,77,88)
lista2 = pd.Series(lista, index = index1)
What I need to do is to fill the gaps between indexes of lista2 with the elements on the list, so I need from row 0 to 22'hola', from 22 to 76 'salut', and so on. The total lenght of the series has to be 88.
I hope you all can understand me well and thanks in advance!