From d5866cbf314cc38309e731d4d7af3599a188f438 Mon Sep 17 00:00:00 2001 From: Kartik Subbarao Date: Fri, 18 Jul 2025 11:51:47 -0400 Subject: [PATCH] Update reports.py fix default setting from string "False" to boolean False --- quantstats/reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantstats/reports.py b/quantstats/reports.py index 1ab5745a..23cf33e8 100644 --- a/quantstats/reports.py +++ b/quantstats/reports.py @@ -363,7 +363,7 @@ def html( tpl = tpl.replace("{{dd_info}}", dd_html_table) # Get active returns setting for plots - active = kwargs.get("active_returns", "False") + active = kwargs.get("active_returns", False) # Generate all the performance plots and embed them in the HTML # plots @@ -1725,7 +1725,7 @@ def plots( # Extract title parameters from kwargs benchmark_colname = kwargs.get("benchmark_title", "Benchmark") strategy_colname = kwargs.get("strategy_title", "Strategy") - active = kwargs.get("active", "False") + active = kwargs.get("active", False) # Handle multiple strategy columns if isinstance(returns, _pd.DataFrame):