从熊猫中的dataframe中删除\ xa0
我有一个NBA球队名称的列表,这些名称已加倍。如何使用\ xa0删除条目?
这是我得到的输出。
['Atlanta Hawks', 'Atlanta Hawks\xa0', 'Boston Celtics', 'Boston Celtics\xa0', ect
从网络捕捉过程中删除种子?
teams["Team"] = teams["Team"].str.replace("(1)", "", regex=False)
teams["Team"] = teams["Team"].str.replace("(2)", "", regex=False)
teams["Team"] = teams["Team"].str.replace("(15)", "", regex=False)
我正在通过如何将列表列出\ XA0条目来删除
I have a list of NBA team names that have doubled up. How do I remove the entries with \xa0?
This is the output I get.
['Atlanta Hawks', 'Atlanta Hawks\xa0', 'Boston Celtics', 'Boston Celtics\xa0', ect
I am removing the seed from the webscraping process by
teams["Team"] = teams["Team"].str.replace("(1)", "", regex=False)
teams["Team"] = teams["Team"].str.replace("(2)", "", regex=False)
teams["Team"] = teams["Team"].str.replace("(15)", "", regex=False)
How to I get my list to not include the \xa0 entries?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论