擅长:python、mysql、java
<p>以下是我使用的csv示例:</p>
<pre><code> Relative Time Markers
0 928 1 NaN
1 1312 2 NaN
2 1364 5 NaN
3 3092 2 NaN
4 3167 3 NaN
5 5072 2 NaN
6 5147 3 NaN
7 5908 2 NaN
8 5969 3 NaN
9 7955 3 1.0
10 9560 3 1.0
11 10313 2 NaN
12 10391 3 NaN
13 11354 2 NaN
14 12322 5 NaN
15 12377 5 1.0
</code></pre>
<p>和代码工作:</p>
^{pr2}$
<p>给出输出:</p>
<pre><code>[9L, 10L, 15L]
Markers Relative Time
0 NaN NaN 2
Markers Relative Time
0 NaN 928.0 1
1 NaN 1312.0 2
2 NaN 1364.0 5
3 NaN 3092.0 2
4 NaN 3167.0 3
5 NaN 5072.0 2
6 NaN 5147.0 3
7 NaN 5908.0 2
8 NaN 5969.0 3
9 NaN NaN 2
10 1.0 7955.0 3
11 NaN NaN 2
12 1.0 9560.0 3
13 NaN 10313.0 2
14 NaN 10391.0 3
15 NaN 11354.0 2
16 NaN 12322.0 5
17 NaN NaN 2
18 1.0 12377.0 5
</code></pre>