You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the error when I attempt to get earning_dates of some tickers such as FITBP
Simple code that reproduces your problem
import yfinance as yf
f_ticker = yf.Ticker('FITBP')
f_earning = f_ticker.earnings_dates
Warning (from warnings module):
File "/home/ahmed/.local/lib/python3.10/site-packages/yfinance/base.py", line 2126
dates.loc[dates[cn] == '-', cn] = "NaN"
FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value 'NaN' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
Warning (from warnings module):
File "/home/ahmed/.local/lib/python3.10/site-packages/yfinance/base.py", line 2126
dates.loc[dates[cn] == '-', cn] = "NaN"
FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value 'NaN' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
Warning (from warnings module):
File "/home/ahmed/.local/lib/python3.10/site-packages/yfinance/base.py", line 2126
dates.loc[dates[cn] == '-', cn] = "NaN"
FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value 'NaN' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
Describe bug
I get the error when I attempt to get
earning_dates
of some tickers such asFITBP
Simple code that reproduces your problem
Debug log
Bad data proof
No response
yfinance
version0.2.33
Python version
Python 3.10
Operating system
Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: