В Python я пытаюсь получить результат итерации for l oop в кавычках, чтобы он передавался другой функции в пределах l oop. Вот мой код вместе с дальнейшим объяснением того, что я пытаюсь сделать:
read = pd.read_csv('Stocks.csv', header=None, delimiter=',')
for x in read[0]:
Ticker = x #I need the x iteration to have quotations around the result to pass into the results = si.get_quote_table(x, dict_result=False) import
results = si.get_quote_table(x, dict_result=False)
#The x in the parenthesis represents a stock ticker symbol from the csv file within the for loop. This will bring back data on the stock. It requires having quotations around the input for the si.get_quote_table to respond.
results.to_csv('Stockdata.csv', index=False)
Я был бы очень признателен за любую помощь / руководство, которое кто-то может предоставить.
Заранее спасибо!