def get_latest_earning_estimate(symbol: str) -> float:
    """Gets latest actual and estimated earning estimate for a stock symbol."""
    df = yf.Ticker(symbol).earnings_dates
    return df["EPS Estimate"].loc[df["EPS Estimate"].first_valid_index()]
Gets latest actual and estimated earning estimate for a stock symbol.
llama-index-integrations/tools/llama-index-tools-finance/llama_index/tools/finance/earnings.py