MCPcopy Create free account
hub / github.com/kernc/backtesting.py / _Stats

Class _Stats

backtesting/_stats.py:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191
192class _Stats(pd.Series):
193 def __repr__(self):
194 with pd.option_context(
195 'display.max_colwidth', 20, # Prevent expansion due to _equity and _trades dfs
196 'display.max_rows', len(self), # Reveal self whole
197 'display.precision', 5, # Enough for my eyes at least
198 # 'format.na_rep', '--', # TODO: Enable once it works
199 ):
200 return super().__repr__()
201
202
203def dummy_stats():

Callers 1

compute_statsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected