From 5cac9b67433b998a49a2aa0aa735be247b3f482f Mon Sep 17 00:00:00 2001 From: teh_coderer Date: Mon, 23 Jan 2023 19:20:04 -0600 Subject: [PATCH] fix income comparison error (#4029) --- openbb_terminal/reports/templates/equity.ipynb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/openbb_terminal/reports/templates/equity.ipynb b/openbb_terminal/reports/templates/equity.ipynb index 10f4cbfbc17..2171f267999 100644 --- a/openbb_terminal/reports/templates/equity.ipynb +++ b/openbb_terminal/reports/templates/equity.ipynb @@ -1350,12 +1350,13 @@ " + scorr_similar\n", " ]\n", ")\n", - "htmlcode += widgets.row(\n", - " [\n", - " widgets.h(3, f\"Income data for similar companies to {symbol}\")\n", - " + income_comparison.to_html()\n", - " ]\n", - ")\n", + "if isinstance(income_comparison, pd.DataFrame):\n", + " htmlcode += widgets.row(\n", + " [\n", + " widgets.h(3, f\"Income data for similar companies to {symbol}\")\n", + " + income_comparison.to_html()\n", + " ]\n", + " )\n", "htmlcode += widgets.row(\n", " [\n", " widgets.p(\n",