質問編集履歴
1
バグ内容の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,6 +9,40 @@
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
10
|
|
11
11
|
|
12
|
+
|
13
|
+
Discordのチャットにて
|
14
|
+
|
15
|
+
Traceback (most recent call last):
|
16
|
+
|
17
|
+
File "/app/.heroku/python/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
|
18
|
+
|
19
|
+
ret = await coro(*args, **kwargs)
|
20
|
+
|
21
|
+
File "discordbot.py", line 43, in allrandom7
|
22
|
+
|
23
|
+
await ctx.send(df.iloc[r,0])
|
24
|
+
|
25
|
+
File "/app/.heroku/python/lib/python3.8/site-packages/pandas/core/indexing.py", line 925, in getitem
|
26
|
+
|
27
|
+
return self._getitem_tuple(key)
|
28
|
+
|
29
|
+
File "/app/.heroku/python/lib/python3.8/site-packages/pandas/core/indexing.py", line 1506, in _getitem_tuple
|
30
|
+
|
31
|
+
self._has_valid_tuple(tup)
|
32
|
+
|
33
|
+
File "/app/.heroku/python/lib/python3.8/site-packages/pandas/core/indexing.py", line 754, in _has_valid_tuple
|
34
|
+
|
35
|
+
self._validate_key(k, i)
|
36
|
+
|
37
|
+
File "/app/.heroku/python/lib/python3.8/site-packages/pandas/core/indexing.py", line 1409, in _validate_key
|
38
|
+
|
39
|
+
self._validate_integer(key, axis)
|
40
|
+
|
41
|
+
File "/app/.heroku/python/lib/python3.8/site-packages/pandas/core/indexing.py", line 1500, in _validate_integer
|
42
|
+
|
43
|
+
raise IndexError("single positional indexer is out-of-bounds")
|
44
|
+
|
45
|
+
IndexError: single positional indexer is out-of-bounds
|
12
46
|
|
13
47
|
|
14
48
|
|
@@ -54,13 +88,7 @@
|
|
54
88
|
|
55
89
|
|
56
90
|
|
57
|
-
#with open("word.csv", "r") as f:
|
58
91
|
|
59
|
-
#reader = csv.reader(f)
|
60
|
-
|
61
|
-
#header = next(reader) # ヘッダを読み飛ばす
|
62
|
-
|
63
|
-
#for row in reader: # 1 行ずつ文字列のリストとして読み
|
64
92
|
|
65
93
|
|
66
94
|
|