質問編集履歴
2
python スクリプト編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,6 +36,30 @@
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
+
以下だとうまくいくのですが・・・他に良い方法がないかと思いまして・・・
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
for ko,oya in zip (ko_list, oya_list):
|
44
|
+
|
45
|
+
df_1_ko = df_1[[ko]]
|
46
|
+
|
47
|
+
df_1_oya = df_1[[oya]]
|
48
|
+
|
49
|
+
fig = plt.figure()
|
50
|
+
|
51
|
+
ax = fig.add_subplot(111)
|
52
|
+
|
53
|
+
ax.plot(df_1_ko, label="ko"+ str(ko))
|
54
|
+
|
55
|
+
ax.plot(df_1_oya, label="oya"+ str(oya))
|
56
|
+
|
57
|
+
plt.legend()
|
58
|
+
|
59
|
+
plt.title("stock_corr")
|
60
|
+
|
61
|
+
```
|
62
|
+
|
39
63
|
|
40
64
|
|
41
65
|
```ここに言語名を入力
|
1
python スクリプト編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,8 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
```
|
26
|
+
|
25
27
|
for ko,oya in zip (ko_list, oya_list):
|
26
28
|
|
27
29
|
sns.set(style = "white", font = "meiryo")
|
@@ -31,6 +33,8 @@
|
|
31
33
|
plot = sns.lineplot(data= df_1_index)
|
32
34
|
|
33
35
|
print(plot)
|
36
|
+
|
37
|
+
```
|
34
38
|
|
35
39
|
|
36
40
|
|