回答編集履歴
1
ミスった
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
# b_cut = np.searchsorted(bins[1:], df['b'].to_numpy(), 'right') でも可
|
14
14
|
|
15
|
-
result = np.bincount(b_cut) / np.bincount(b_cut
|
15
|
+
result = np.bincount(b_cut, df['a'].to_numpy()) / np.bincount(b_cut)
|
16
16
|
|
17
17
|
|
18
18
|
|