Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :252: FutureWarning: Comparing Series of datetimes with 'datetime.date'. Currently, the
- 'datetime.date' is coerced to a datetime. In the future pandas will
- not coerce, and a TypeError will be raised. To retain the current
- behavior, convert the 'datetime.date' to a datetime with
- 'pd.Timestamp'.
- 'testing': df[(df['Date'] >= split_date)],
- 100%|##########| 165/165 [00:16<00:00, 10.04it/s]
- Normalizing data
- Preparing data:
- 0%| | 0/165 [00:00<?, ?it/s]
- Traceback (most recent call last):
- File "C:\Python36\lib\site-packages\pandas\core\indexes\base.py", line 3078, in get_loc
- return self._engine.get_loc(key)
- File "pandas\_libs\index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
- File "pandas\_libs\index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
- File "pandas\_libs\hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
- File "pandas\_libs\hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
- KeyError: 'testing'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "step1_prepare_training_data.py", line 1, in <module>
- import core.prepare_training_data
- File "C:\Users\H\Desktop\stock_ml_models-master-c30cdf06a69a0ce6b0d0366add64e89f13483fc4\core\prepare_training_data.py", line 392, in <module>
- df = tmp_df.xs('testing', level='data_type')
- File "C:\Python36\lib\site-packages\pandas\core\generic.py", line 2966, in xs
- drop_level=drop_level)
- File "C:\Python36\lib\site-packages\pandas\core\indexes\multi.py", line 2416, in get_loc_level
- indexer = self._get_level_indexer(key, level=level)
- File "C:\Python36\lib\site-packages\pandas\core\indexes\multi.py", line 2496, in _get_level_indexer
- loc = level_index.get_loc(key)
- File "C:\Python36\lib\site-packages\pandas\core\indexes\base.py", line 3080, in get_loc
- return self._engine.get_loc(self._maybe_cast_indexer(key))
- File "pandas\_libs\index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
- File "pandas\_libs\index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
- File "pandas\_libs\hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
- File "pandas\_libs\hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
- KeyError: 'testing'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement