We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_Data.__repr__
1 parent dfba461 commit 1c12381Copy full SHA for 1c12381
backtesting/_util.py
@@ -136,7 +136,7 @@ def _update(self):
136
self.__arrays['__index'] = index
137
138
def __repr__(self):
139
- i = min(self.__i, len(self.__df) - 1)
+ i = min(self.__i, len(self.__df)) - 1
140
index = self.__arrays['__index'][i]
141
items = ', '.join(f'{k}={v}' for k, v in self.__df.iloc[i].items())
142
return f'<Data i={i} ({index}) {items}>'
0 commit comments