-1
I have a dataframe that is generated randomly by varying its number of lines. I would like to save this variable number for future use.
Follow the example of dataframe:
And I’d like to replace the number of lines with that 10 to make it more automated.
i = 0
lista = []
while i < 10:
lin = x.loc[i]['index']
p = yf.Ticker(lin)
lista.append(p.info)
lista.append("-----------------------")
i = i + 1