【发布时间】:2021-06-21 01:49:07
【问题描述】:
我能够使用以下内容通过 pandas 删除数据:
import re
repl = {r'<[^>]+>': '',
r'\r\n': ' ',
r'Share to facebook|Share to twitter|Share to linkedin|Share on Facebook|Share on Twitter|Share on Messenger|Share on Whatsapp': ''}
articles['content'] = articles['content'].replace(repl, regex=True)
我怎样才能在 Atlas 中的实际数据库上做同样的事情?
我的数据结构是:
_id:
title:
url:
description:
author:
publishedAt:
content:
source_id:
urlToImage:
summarization:
【问题讨论】:
标签: pandas mongodb aggregation-framework mongodb-atlas