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)
pairdata = read_json(filename, orient='values')
pairdata.columns = self._columns
pairdata = pairdata.astype(copy=False,
dtype={'open': 'float', 'high': 'float',
pairdata = pairdata.astype(dtype={'open': 'float', 'high': 'float',
'low': 'float', 'close': 'float', 'volume': 'float'})
pairdata['date'] = to_datetime(pairdata['date'],
unit='ms',