質問編集履歴
1
コードの挿入し編集しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,15 +8,15 @@
|
|
8
8
|
以下の様な感じでひとつずつならできるのですが
|
9
9
|
**filepath = filepaths[1]****←①この部分を繰り返し行う方法がわかりません。**
|
10
10
|
|
11
|
+
```ここに言語を入力
|
11
|
-
for filepath in filepaths : ←これだとダメなの理解しました
|
12
|
+
for filepath in filepaths : ←これだとダメなの理解しました(変更してみましたがうまくできませんでした)
|
12
13
|
_df = pd.read_csv((filepath),encoding='cp932')
|
13
14
|
colums = _df.iloc[:,[9,0,1,10,34,98,28,3,59]]
|
14
15
|
df = colums
|
15
|
-
|
16
|
+
```
|
16
|
-
・
|
17
|
-
・
|
18
17
|
|
18
|
+
|
19
|
-
|
19
|
+
```ここに言語を入力
|
20
20
|
filepaths = glob('reha/*.csv')
|
21
21
|
**filepath = filepaths[1]←ここ!!**
|
22
22
|
_df = pd.read_csv((filepath),encoding='cp932')
|
@@ -31,3 +31,4 @@
|
|
31
31
|
sample_2 = _df['結果'].value_counts()
|
32
32
|
sample_3 = pd.concat([sample_1,sample_2])
|
33
33
|
weak1_df = pd.concat([weak1_df,sample_3])
|
34
|
+
```
|