仅从熊猫数据框中获取字母和标点符号?

时间:2020-05-14 07:37:11

标签: python pandas beautifulsoup data-science

这是我使用代码生成的熊猫数据框的输出

df.loc[:,'body'].head()
0    Thanks for the advice! Ill try to open it as s...
1    Sometimes it will only feel wet or damp when t...
2    21M, sounds like you’re in uni. How are you do...
3               Nick and Amy's r/s so bloody toxic sia
4    no probs! Okay so my method is using a disposa...

我想在这里做两件事。首先,我希望能够看到我的整个行句子,因为它太长了,并且后面跟有一个“ ...”。其次,我只想收集文本和一些重要标点符号的数据,例如',。!/'。我该怎么做?

0 个答案:

没有答案