Last active
October 17, 2021 05:05
-
-
Save AI-MOO/acfd0806747bf5374fa9a444d5940de6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#استيراد المكتبات | |
import pandas as pd | |
from pymongo import MongoClient | |
con = MongoClient() # تهيئة الاتصال | |
# con.list_database_names() # استعراض قواعد البيانات المتاحدة لديك | |
db = con.database_name # الاتصال بقاعدة البيانات المطلوبة | |
cursor = db.collection_name.find(query) # تحضير المؤشر بواسطةالاستعلام | |
df = pd.DataFrame(list(cursor)) # سحب البيانات إلى إطار بيانات |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment