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

Method _update

backtesting/_util.py:184–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 self.__cache.clear()
183
184 def _update(self):
185 index = self.__df.index.copy()
186 self.__arrays = {col: _Array(arr, index=index)
187 for col, arr in self.__df.items()}
188 # Leave index as Series because pd.Timestamp nicer API to work with
189 self.__arrays['__index'] = index
190
191 def __repr__(self):
192 i = min(self.__len, len(self.__df)) - 1

Callers 2

__init__Method · 0.95
runMethod · 0.80

Calls 1

_ArrayClass · 0.85

Tested by 1

runMethod · 0.64