回答編集履歴
2
修正
test
CHANGED
@@ -8,9 +8,11 @@
|
|
8
8
|
|
9
9
|
filepath = 'XXXX' # 対象のフォルダパスを記述する
|
10
10
|
|
11
|
-
for file
|
11
|
+
for file in glob.glob(filepath + '/*.csv'):
|
12
12
|
|
13
|
+
filename = file.split('_')
|
14
|
+
|
13
|
-
graphname = filename
|
15
|
+
graphname = filename[1] + '_' + filename[2]
|
14
16
|
|
15
17
|
graphfilename = graphname + '.png'
|
16
18
|
|
1
追記
test
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
【追記】
|
2
|
+
|
3
|
+
```Python
|
4
|
+
|
5
|
+
import glob
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
filepath = 'XXXX' # 対象のフォルダパスを記述する
|
10
|
+
|
11
|
+
for filename in glob.glob(filepath + '/*.csv'):
|
12
|
+
|
13
|
+
graphname = filename.split('_')[1] + '_' + filename.split('_')[2]
|
14
|
+
|
15
|
+
graphfilename = graphname + '.png'
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
---
|
22
|
+
|
1
23
|
```Python
|
2
24
|
|
3
25
|
import datetime
|