回答編集履歴
1
ソースの修正
test
CHANGED
@@ -14,8 +14,6 @@
|
|
14
14
|
|
15
15
|
df = pd.DataFrame(columns=['計算結果'])
|
16
16
|
|
17
|
-
print(df)
|
18
|
-
|
19
17
|
for i in range(ni):
|
20
18
|
|
21
19
|
df.loc[i, '計算結果'] = i
|
@@ -24,4 +22,32 @@
|
|
24
22
|
|
25
23
|
print(df)
|
26
24
|
|
25
|
+
'''
|
26
|
+
|
27
|
+
計算結果
|
28
|
+
|
29
|
+
0 0
|
30
|
+
|
31
|
+
1 1
|
32
|
+
|
33
|
+
2 2
|
34
|
+
|
35
|
+
3 3
|
36
|
+
|
37
|
+
4 4
|
38
|
+
|
39
|
+
5 5
|
40
|
+
|
41
|
+
6 6
|
42
|
+
|
43
|
+
7 7
|
44
|
+
|
45
|
+
8 8
|
46
|
+
|
47
|
+
9 9
|
48
|
+
|
49
|
+
10 10
|
50
|
+
|
51
|
+
'''
|
52
|
+
|
27
53
|
```
|