擅长:python、mysql、java
<p>还有一个解决方案:</p>
<pre><code>In [74]: df
Out[74]:
reviewerID asin reviewerName unixReviewTime helpful
0 A1N4O8VOJZTDVB B004A9SDD8 Annette Yancey 1383350400 [1, 1]
In [75]: df.join(pd.DataFrame(df.pop('helpful').tolist(),
columns=['helpful_numerator','helpful_denominator']))
Out[75]:
reviewerID asin reviewerName unixReviewTime helpful_numerator helpful_denominator
0 A1N4O8VOJZTDVB B004A9SDD8 Annette Yancey 1383350400 1 1
</code></pre>