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):