提取数据框中的单词列表

时间:2019-01-13 07:24:18

标签: python-3.x stemming

Error: Reason:Unknown reason, raw:"Could not receive latest API key from App Store Connect, this might be a server issue."
    at Object._callee4$ (C:\expo-cli@2.6.14\src\commands\build\auth.js:135:11)
    at tryCatch (C:\Users\danie\AppData\Roaming\npm\node_modules\expo-cli\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (C:\Users\danie\AppData\Roaming\npm\node_modules\expo-cli\node_modules\regenerator-runtime\runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (C:\Users\danie\AppData\Roaming\npm\node_modules\expo-cli\node_modules\regenerator-runtime\runtime.js:114:21)
    at step (C:\Users\danie\AppData\Roaming\npm\node_modules\expo-cli\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
    at C:\Users\danie\AppData\Roaming\npm\node_modules\expo-cli\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:13
    at process._tickCallback (internal/process/next_tick.js:68:7)

图像-> [1]:https://i.stack.imgur.com/j2EAK.jpg

我的数据框看起来像上面,我尝试了下面的代码来阻止它:

<html>
            <body>
            <table border=1>
            <tr>
            <th>label</th>
            <th>rev</th>
            </tr>
            <tr>
            <td>0</td>
            <td>[ story man unnatural feelings pig...] </td>
            </tr>
            <tr>
            <td>0</td>
            <td>[ airport starts brand new luxury ...] </td></tr>
            <tr>
            <td>0</td>
            <td>[ film lacked something couldnt pu...] </td></tr>
            <tr>
            <td>0</td>
            <td>[ sorry everyone know supposed art...] </td></tr>
            <tr>
            <td>0</td>
            <td>[ little parents took along theate..]</td></tr>
            </table>
            </body>
            </html>

但是它又导致了相同的数据帧,无法指出出了什么问题。 任何帮助将不胜感激。谢谢您的时间

1 个答案:

答案 0 :(得分:0)

无需说出确切的代码就可以说,但是如果系列中的每个项目都是字符串列表,您可以尝试

da.rev.apply(lambda x: [ps.stem(word) for word in x])