<p>您可以使用<a href="http://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.ndarray.flatten.html" rel="nofollow noreferrer">^{<cd1>}</a>,然后使用平面嵌套<code>lists</code>-<a href="https://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python">see</a>:</p>
<pre><code>print df
a
0 [cheese, milk]
1 [yogurt, cheese]
2 [cheese, cream]
print df.a.values
[[['cheese', 'milk']]
[['yogurt', 'cheese']]
[['cheese', 'cream']]]
l = df.a.values.flatten()
print l
[['cheese', 'milk'] ['yogurt', 'cheese'] ['cheese', 'cream']]
print [item for sublist in l for item in sublist]
['cheese', 'milk', 'yogurt', 'cheese', 'cheese', 'cream']
</code></pre>
<p>编辑:</p>
<p>您可以尝试:</p>
<pre><code>import pandas as pd
s = pd.Series(["['cheese', 'milk']", "['yogurt', 'cheese']", "['cheese', 'cream']"])
#remove []
s = s.str.strip('[]')
print s
0 'cheese', 'milk'
1 'yogurt', 'cheese'
2 'cheese', 'cream'
dtype: object
df = s.str.split(',', expand=True)
#remove ' and strip empty string
df = df.applymap(lambda x: x.replace("'", '').strip())
print df
0 1
0 cheese milk
1 yogurt cheese
2 cheese cream
l = df.values.flatten()
print l.tolist()
['cheese', 'milk', 'yogurt', 'cheese', 'cheese', 'cream']
</code></pre>