copy=False does not make the changes inline anyway, so not needed

This commit is contained in:
hroff-1902 2020-02-22 19:54:19 +03:00
parent c651e0ac82
commit e2e6b940a3

View File

@ -71,8 +71,7 @@ class JsonDataHandler(IDataHandler):
return DataFrame(columns=self._columns) return DataFrame(columns=self._columns)
pairdata = read_json(filename, orient='values') pairdata = read_json(filename, orient='values')
pairdata.columns = self._columns pairdata.columns = self._columns
pairdata = pairdata.astype(copy=False, pairdata = pairdata.astype(dtype={'open': 'float', 'high': 'float',
dtype={'open': 'float', 'high': 'float',
'low': 'float', 'close': 'float', 'volume': 'float'}) 'low': 'float', 'close': 'float', 'volume': 'float'})
pairdata['date'] = to_datetime(pairdata['date'], pairdata['date'] = to_datetime(pairdata['date'],
unit='ms', unit='ms',