From 0ee286b972e9b79f2ce459783ee419258c95cd40 Mon Sep 17 00:00:00 2001 From: Michael Henrique <32798723+bohruz@users.noreply.github.com> Date: Fri, 14 Oct 2022 04:41:23 -0300 Subject: [PATCH] fix: numeric_only deprecated FutureWarning message (#2827) Co-authored-by: Michael Henrique Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> --- openbb_terminal/stocks/due_diligence/business_insider_view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/stocks/due_diligence/business_insider_view.py b/openbb_terminal/stocks/due_diligence/business_insider_view.py index 03a83128719..fba99826917 100644 --- a/openbb_terminal/stocks/due_diligence/business_insider_view.py +++ b/openbb_terminal/stocks/due_diligence/business_insider_view.py @@ -95,9 +95,9 @@ def price_target_from_analysts( ax.plot(data.index, data[plot_column].values) if start_date: - ax.plot(df_analyst_data.groupby(by=["Date"]).mean()[start_date:]) # type: ignore + ax.plot(df_analyst_data.groupby(by=["Date"]).mean(numeric_only=True)[start_date:]) # type: ignore else: - ax.plot(df_analyst_data.groupby(by=["Date"]).mean()) + ax.plot(df_analyst_data.groupby(by=["Date"]).mean(numeric_only=True)) ax.scatter( df_analyst_data.index,