MCPcopy
hub / github.com/ranaroussi/quantstats / log_returns

Function log_returns

quantstats/utils.py:80–82  ·  view source on GitHub ↗

Shorthand for to_log_returns

(returns, rf=0.0, nperiods=None)

Source from the content-addressed store, hash-verified

78
79
80def log_returns(returns, rf=0.0, nperiods=None):
81 """Shorthand for to_log_returns"""
82 return to_log_returns(returns, rf, nperiods)
83
84
85def to_log_returns(returns, rf=0.0, nperiods=None):

Callers

nothing calls this directly

Calls 1

to_log_returnsFunction · 0.85

Tested by

no test coverage detected