Category "yfinance"

AttributeError: 'Index' object has no attribute 'tz_localize' with yfinance

'this error occurs only with some stocks, for instance with NFLX, KO or MCD, but not with AAPL or INFy both with yfinance 0.1.63 and 0.1.69, pandas 1.2.3 or 1.4

How to download yfinance, using pycharm and windows powershell

When trying to install yFinance a python plugin, I tried going into my windows powershell to install it using the command pip install yfinance This gives me th

Cannot get a file to be read into a list of stock tickers and then get yfinance data for each

I am trying to read a csv file into a dataframe and then iterate over each ticker to get some yahoo finance data, but I struggle with matching the right data ty

how to retrieve sector and industry for a list of tickers with python?

I have a list of tickers (below: tick1) that comes from the Earnings Report. I would like to add the "shortname", "sector" and the "industry" next to the ticker

ModuleNotFoundError: No module named 'yfinance' - Importing Yahoo finance & Financials to Python

I'm using Mac OS and receiving an error when doing the following: import pandas as pd import yfinance as yf from yahoofinancials import YahooFinancials Module

How to divide a groupby Object by pandas Series efficiently? Or how to convert yfinance multiple ticker data to another currency?

I am pulling historical price data for the S&P500 index components with yfinance and would now like to convert the Close & Volume from USD into EUR. Thi

backtrader: custom columns as indicator

import backtrader.feeds as btfeeds class PandasDataSource(bt.feeds.PandasData): lines = ('Strategy_GoldenCross_Signal',) params=( ('Strate

Python Finance: get_data_yahoo Not Retrieving Data

I ran this code about a year ago and it was working fine. Now it has stopped working, and I think it has to do with the get_data_yahoo function. Here is part

MACD stock indicator function using ewm() from pandas library

Here is the test code for my macd function, however, the values I am getting are incorrect. I don't know if it is because my span is in days and my data is in 2

Formula to calculate adjusted close price like yahoofinance in python

So, I have been trying to create a manual function in python that calculates the adjusted closing price of stocks using dividends and stock splits data but I co

Get info on multiple stock tickers quickly using yfinance

I am trying to get the current price and market cap of all of the tickers in the S&P500 and the way I am currently doing it is very slow, so I was wondering

pandas_ta parabolic SAR giving wrong values for yfinance

I made a function that uses the psar function from the pandas_ta library. This function seems to work incorrectly, it gives the PSARl, PSARs and PSARr values on