質問編集履歴
2
コードと画像の追加・タイトルの変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
int64からint32に変換できなくてエラー?
|
body
CHANGED
@@ -149,4 +149,22 @@
|
|
149
149
|
astype(np.int32)など
|
150
150
|
試しましたが、だめでした、、、
|
151
151
|
|
152
|
+
因みにヒートマップを試したところ、
|
153
|
+
こちらはうまくいきました。
|
154
|
+
|
155
|
+
```Python
|
156
|
+
cm = np.corrcoef(data[col_tv].values.T)
|
157
|
+
sns.set(font_scale=1.5)
|
158
|
+
hm = sns.heatmap(cm,
|
159
|
+
cbar=True,
|
160
|
+
annot=True,
|
161
|
+
square=True,
|
162
|
+
fmt='.2f',
|
163
|
+
annot_kws={'size': 15},
|
164
|
+
yticklabels=col_tv,
|
165
|
+
xticklabels=col_tv)
|
166
|
+
plt.show()
|
167
|
+
```
|
168
|
+
|
169
|
+

|
152
170
|
何卒宜しくお願い致します。
|
1
図の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -111,6 +111,9 @@
|
|
111
111
|
TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'
|
112
112
|
```
|
113
113
|
|
114
|
+
因みにこのような図は出てきました。
|
115
|
+

|
116
|
+
|
114
117
|
### 該当のソースコード
|
115
118
|
|
116
119
|
```Python
|