YutaroOgawa / Deep-Reinforcement-Learning-Book

書籍「つくりながら学ぶ!深層強化学習」のサポートリポジトリです
MIT License
339 stars 156 forks source link

第四章中,用了作者新改的代码,后还是报了错误,请问这是什么原因呀 #18

Open demrry opened 2 years ago

demrry commented 2 years ago

File D:\Anaconda\anaconda3\lib\site-packages\pandas\core\indexes\base.py:3631, in Index.get_loc(self, key, method, tolerance) 3629 return self._engine.get_loc(casted_key) 3630 except KeyError as err: -> 3631 raise KeyError(key) from err 3632 except TypeError: 3633 # If we have a listlike key, _check_indexing_error will raise 3634 # InvalidIndexError. Otherwise we fall through and re-raise 3635 # the TypeError. 3636 self._check_indexing_error(key)

KeyError: 0