-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行1-gym_developing的maze_game.py报错 #8
Comments
我遇到了相同的问题,主要是pandas的int64index数学类型没法用于索引行数,bug出在 self.t.loc[s,a] = tuple(s)这句上。 |
问题已经解决,主要出在loc[element1, element2]上,element1需要整形或者标签(字符型),而源代码定义的是一个元组,因此在用loc进行切片时会出现index数据不匹配的错误。部分代码修改为:
@lotharelvin |
报错信息如下:
line 57, in _trans_make
self.t.loc[s, a] = tuple(n_s)
中间是嵌套的报错信息
最后到了
raise KeyError(f"None of [{key}] are in the [{axis_name}]")
KeyError: "None of [Int64Index([0, 0], dtype='int64')] are in the [index]"
代码完全没改过,请问是为什么。
The text was updated successfully, but these errors were encountered: