回答編集履歴
1
test
CHANGED
@@ -46,4 +46,15 @@
|
|
46
46
|
#1 0.5 0.5 4.0
|
47
47
|
#2 23.5 12.5 6.0
|
48
48
|
#3 68.5 27.5 8.0
|
49
|
+
|
50
|
+
# draw heatmap
|
51
|
+
import seaborn as sns
|
52
|
+
import matplotlib.pyplot as plt
|
53
|
+
|
54
|
+
sns.set_theme()
|
55
|
+
h = sns.heatmap(dfx.pivot(1, 0, 2), cmap='cool')
|
56
|
+
h.invert_yaxis()
|
57
|
+
h.set(xlabel='X', ylabel='Y')
|
58
|
+
plt.show()
|
49
59
|
```
|
60
|
+

|