擅长:python、mysql、java
<p>如果<code>helpful</code>是一列列表,则可以使用<code>str</code>访问列表中的元素:</p>
<pre><code>df['helpful_numerator'] = df.helpful.str[0]
df['helpful_denominator'] = df.helpful.str[1]
df
</code></pre>
<p><a href="https://i.stack.imgur.com/dbgna.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dbgna.png" alt="enter image description here"/></a></p>