質問編集履歴

1

エラーの表示が異なったため

2021/10/03 05:59

投稿

tynk
tynk

スコア6

test CHANGED
@@ -1 +1 @@
1
- objectからint64への型変換
1
+ uint8 からint64への型変換
test CHANGED
@@ -16,23 +16,19 @@
16
16
 
17
17
 
18
18
 
19
- ```
19
+ ```python
20
20
 
21
- 973 if np.issubdtype(dtype.type, np.integer):
22
-
23
- --> 974 return lib.astype_intsafe(arr.ravel(), dtype).reshape(arr.shape)
24
-
25
- 975
26
-
27
- 976 # if we have a datetime/timedelta array of objects
21
+ KeyError: 'Genre'
28
22
 
29
23
 
30
24
 
31
- pandas/_libs/lib.pyx in pandas._libs.lib.astype_intsafe()
25
+ The above exception was the direct cause of the following exception:
32
26
 
33
27
 
34
28
 
35
- ValueError: invalid literal for int() with base 10: 'アメリカ'
29
+ KeyError Traceback (most recent call last)
30
+
31
+
36
32
 
37
33
  ```
38
34