Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. :252: FutureWarning: Comparing Series of datetimes with 'datetime.date'. Currently, the
  2. 'datetime.date' is coerced to a datetime. In the future pandas will
  3. not coerce, and a TypeError will be raised. To retain the current
  4. behavior, convert the 'datetime.date' to a datetime with
  5. 'pd.Timestamp'.
  6. 'testing': df[(df['Date'] >= split_date)],
  7. 100%|##########| 165/165 [00:16<00:00, 10.04it/s]
  8. Normalizing data
  9. Preparing data:
  10. 0%| | 0/165 [00:00<?, ?it/s]
  11. Traceback (most recent call last):
  12. File "C:\Python36\lib\site-packages\pandas\core\indexes\base.py", line 3078, in get_loc
  13. return self._engine.get_loc(key)
  14. File "pandas\_libs\index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
  15. File "pandas\_libs\index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
  16. File "pandas\_libs\hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
  17. File "pandas\_libs\hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
  18. KeyError: 'testing'
  19.  
  20. During handling of the above exception, another exception occurred:
  21.  
  22. Traceback (most recent call last):
  23. File "step1_prepare_training_data.py", line 1, in <module>
  24. import core.prepare_training_data
  25. File "C:\Users\H\Desktop\stock_ml_models-master-c30cdf06a69a0ce6b0d0366add64e89f13483fc4\core\prepare_training_data.py", line 392, in <module>
  26. df = tmp_df.xs('testing', level='data_type')
  27. File "C:\Python36\lib\site-packages\pandas\core\generic.py", line 2966, in xs
  28. drop_level=drop_level)
  29. File "C:\Python36\lib\site-packages\pandas\core\indexes\multi.py", line 2416, in get_loc_level
  30. indexer = self._get_level_indexer(key, level=level)
  31. File "C:\Python36\lib\site-packages\pandas\core\indexes\multi.py", line 2496, in _get_level_indexer
  32. loc = level_index.get_loc(key)
  33. File "C:\Python36\lib\site-packages\pandas\core\indexes\base.py", line 3080, in get_loc
  34. return self._engine.get_loc(self._maybe_cast_indexer(key))
  35. File "pandas\_libs\index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
  36. File "pandas\_libs\index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
  37. File "pandas\_libs\hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
  38. File "pandas\_libs\hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
  39. KeyError: 'testing'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement