copy=False does not make the changes inline anyway, so not needed
This commit is contained in:
parent
c651e0ac82
commit
e2e6b940a3
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user