Skip to content

Commit

Permalink
fixed single strategy basic report
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi committed Jun 22, 2023
1 parent 52fcc4e commit 6e59d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantstats/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,6 @@ def plots(returns, benchmark=None, grayscale=False,
elif isinstance(returns, _pd.DataFrame):
returns.columns = strategy_colname

returns = _pd.DataFrame(returns)

if mode.lower() != 'full':
_plots.snapshot(returns, grayscale=grayscale,
figsize=(figsize[0], figsize[0]),
Expand All @@ -909,6 +907,8 @@ def plots(returns, benchmark=None, grayscale=False,

return

returns = _pd.DataFrame(returns)

# prepare timeseries
if benchmark is not None:
benchmark = _utils._prepare_benchmark(benchmark, returns.index)
Expand Down

0 comments on commit 6e59d8e

Please sign in to comment.