reindex_pandas_for_backtrader#
- reindex_pandas_for_backtrader(df, start, end, bucket)[source]#
Backtrader does not allow sparse data, but all data must be filled.
Sparse data: not trades at the beginning, end of the time series. Missed trading days.
- Parameters:
df (DataFrame) –
start (Timestamp) –
end (Timestamp) –
bucket (TimeBucket) –