<jupyter_start><jupyter_text>Retrieve Data from MongoDB<jupyter_code>import pymongo
lient = pymongo.MongoClient("mongodb+srv://tsubedy:<EMAIL>/?retryWrites=true&w=majority")
db = client["us_cases_db"]
collection = db.us_cases
cursor = collection.find()
cases_data = list(cursor)
us_cases_data = pd.DataFrame(cases_data)
us_cases_data.shape<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12737127371273713, 'fraction_numerical': 0.0, 'mean_word_length': 10.5625, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '381577', 'license': 'MIT', 'n_tokens_mistral': 145, 'n_tokens_neox': 143, 'n_words': 18, 'path': 'us_cases_data_to_MongoDB.ipynb', 'repo_name': 'tsubedy/final_project', 'size': '396'}