Update hdf5 handler to reset index on load

This commit is contained in:
Matthias
2022-09-23 14:49:17 +00:00
parent 0bbb6faeba
commit 48352b8a37
2 changed files with 8 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ class HDF5DataHandler(IDataHandler):
raise ValueError("Wrong dataframe format")
pairdata = pairdata.astype(dtype={'open': 'float', 'high': 'float',
'low': 'float', 'close': 'float', 'volume': 'float'})
pairdata = pairdata.reset_index(drop=True)
return pairdata
def ohlcv_append(