bt
bt copied to clipboard
bt/backtest.py:506: PerformanceWarning: DataFrame is highly fragmented.
bt/backtest.py:506: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling
frame.insertmany times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use
newframe = frame.copy() return self.backtests[strategy_name].strategy.get_transactions()