Skip to content

Commit

Permalink
Merge pull request ranaroussi#16 from Whisperes/patch-2
Browse files Browse the repository at this point in the history
Fix unnecesery removing
  • Loading branch information
ranaroussi authored Dec 24, 2019
2 parents 71fb349 + 60798e3 commit 485fd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantstats/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def metrics(returns, benchmark=None, rf=0., display=True,
df["benchmark"] = _utils._prepare_benchmark(
benchmark, returns.index, rf)

df = df.dropna()
df = df.fillna(0)

# pct multiplier
pct = 100 if display or "internal" in kwargs else 1
Expand Down

0 comments on commit 485fd78

Please sign in to comment.