回答編集履歴

1

コード修正

2022/12/05 08:26

投稿

jbpb0
jbpb0

スコア7651

test CHANGED
@@ -16,6 +16,8 @@
16
16
  ↓ 変更
17
17
  ```python
18
18
  heat_map = sns.heatmap(df)
19
- heat_map.set_yticks(np.arange(0, df.shape[0], 0.1*(df.shape[0]-1)).astype('int'))
19
+ heat_map.set_yticks(np.arange(0, df.shape[0], 0.1*df.shape[0]).astype('int'))
20
- heat_map.set_yticklabels((np.arange(0, df.shape[0], 0.1*(df.shape[0]-1))/(df.shape[0]-1)).round(1))
20
+ heat_map.set_yticklabels((np.arange(0, df.shape[0], 0.1*df.shape[0])/df.shape[0]).round(1))
21
21
  ```
22
+
23
+ で、一番下の「1.0」以外は表示されると思います