Relative Content

Tag Archive for pythonyfinance

Importing yfinance library does not let me print anything

I’ve been working on a stock screener using python and when I tried working on it again after taking a break, my program stopped printing things out and honestly, it’s like it is skipping the whole program. Even running something easy like printing one line does not work when importing yfinance. This is only specific to this library, others like datetime, pandas, and requests don’t do anything to it. Anyone have any suggestions?

Yfinance has Nan value for eps of NVIDIA

import yfinance as yf stock_ticker = yf.Ticker(‘NVDA’) stock_info = stock_ticker.get_financials(freq = “quarterly”) stock_info 2024-01-31 EPS has NaN value. I can’t understand that it is very famous stock but yfinance missed EPS value? Is there any solution or another nice library to check EPS value? python yfinance

Error while reading multi dimensional array through data wrangler

import yfinance as yf import pandas as pd # Download historical data for required stocks ohlcv_data = {} # Define tickers list tickers = [‘AAPL’, ‘MSFT’, ‘GOOG’] # Example tickers # Looping over tickers and storing OHLCV dataframe in dictionary for ticker in tickers: temp = yf.download(ticker, period=’1mo’, interval=’15m’) temp.dropna(how=”any”, inplace=True) ohlcv_data[ticker] = temp I […]