回答編集履歴
2
修正
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
```python
|
18
18
|
|
19
|
-
pd = pd.read_csv(os.path.join(r"Z:/実験結果/",file_name),header=None,usecols=list(range(1,n+1)),names=[f"i回目" for i in range(1,n+1)])
|
19
|
+
pd = pd.read_csv(os.path.join(r"Z:/実験結果/",file_name),header=None,usecols=list(range(1,n+1)),names=[f"{i}回目" for i in range(1,n+1)])
|
20
20
|
|
21
21
|
```
|
22
22
|
|
1
途中で投稿してしまったので追加
test
CHANGED
@@ -18,6 +18,6 @@
|
|
18
18
|
|
19
19
|
pd = pd.read_csv(os.path.join(r"Z:/実験結果/",file_name),header=None,usecols=list(range(1,n+1)),names=[f"i回目" for i in range(1,n+1)])
|
20
20
|
|
21
|
+
```
|
21
22
|
|
22
|
-
|
23
|
-
|
23
|
+
と書けば、ご希望のデータフレームになるはずです。
|