We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc10b30 commit b21b4b6Copy full SHA for b21b4b6
backtesting/_stats.py
@@ -155,6 +155,10 @@ def _round_timedelta(value, _period=_data_period(index)):
155
156
class _Stats(pd.Series):
157
def __repr__(self):
158
- # Prevent expansion due to _equity and _trades dfs
159
- with pd.option_context('max_colwidth', 20):
+ with pd.option_context(
+ 'display.max_colwidth', 20, # Prevent expansion due to _equity and _trades dfs
160
+ 'display.max_rows', len(self), # Reveal self whole
161
+ 'display.precision', 5, # Enough for my eyes at least
162
+ # 'format.na_rep', '--', # TODO: Enable once it works
163
+ ):
164
return super().__repr__()
0 commit comments