Skip to content

Commit

Permalink
copy=False does not make the changes inline anyway, so not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
hroff-1902 committed Feb 22, 2020
1 parent c651e0a commit e2e6b94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions freqtrade/data/history/jsondatahandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def _ohlcv_load(self, pair: str, timeframe: str,
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',
Expand Down

0 comments on commit e2e6b94

Please sign in to comment.