Hi, getting data from yfinance

Hi, sorry, very basic question:

I have an excel sheet with stock tickers. I want to build a dataframe with the PRICE and the DIVIDEND. 1st column: tickers (from the excel file), 2nd column: last price (I’m able to get the prices from yf). But I am not able to get the dividend. Thank you for your input!

It seems like an error for the dividend part is cut off at the edge of the screenshot. Could you please share that error too?

Yes absolutly, thank you,

Can you rewrite [7] to this, and show what it prints?

for ticker in ticker_list:
    print(stock_data[ticker])

and the other part:

I have to go now but…. Danke Schon for now! :grin:

Danke?! Seems like you are German too.

Gerne, falls es noch weitere Fragen gibt, kannst du diese gerne fragen.

No Problem, incase you have any questions, feel free to ask them.

Amongst other things… :laughing: