| 190 | |
| 191 | |
| 192 | class _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 | |
| 203 | def dummy_stats(): |