擅长:python、mysql、java
<p>这是由<a href="http://pandas.sourceforge.net/index.html" rel="nofollow">Pandas</a>包中的“Series”很好地实现的。在</p>
<p>例如从<a href="http://pandas.sourceforge.net/dsintro.html#series" rel="nofollow">tutorial</a>:</p>
<pre><code>>>> from pandas import *
>>> import numpy as np
>>> s = Series(np.random.randn(5), index=['a', 'b', 'c', 'd', 'e'])
>>> s
a -0.125628696947
b 0.0942011098937
c -0.71375003803
d -0.590085433392
e 0.993157363933
>>> s[1]
0.094201109893723267
>>> s['b']
0.094201109893723267
</code></pre>
<p>我已经玩了几天了,但它看起来有很多功能。在</p>