I have a pandas Series like this:
measure
0 0.3
6 0.6
9 0.2
11 0.3
14 0.0
17 0.1
23 0.9
以及一个类似于这样的numpy数组:
array([[ 0, 0, 9, 11],
[ 6, 14, 6, 17]])
我该如何从numpy数组中的值查找到系列中的索引,以获得以下结果:
array([[ 0.3, 0.3, 0.2, 0.3],
[ 0.6, 0.0, 0.6, 0.1]])