We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
First of all, great work you've done to provide this tool. Is there a way for me to connect pandas with mongodb atlas URI?
The text was updated successfully, but these errors were encountered:
Hi @mannerism!
Thanks!
To connect to MongoDB Atlas you can use something like that:
import pymongo import pdmongo as pdm import pandas as pd from urllib.parse import quote_plus from pymongo import MongoClient url = f"mongodb+srv://<username>:{quote_plus('<password>')}@{'<cluster>?retryWrites=true&w=majority'}" client = MongoClient(url) df = pd.DataFrame({"A": [1,2]}) df.to_mongo("TestCollection", client['db']) ddf = pdm.read_mongo("TestCollection", [], client['db'])
Where and are your MongoDB Atlas username and password and is the MongoDB Atlas cluster you want to connect to.
You can retrieve those details by clicking "Connect" in MongoDB atlas web UI.
Note
Make sure you have updated to the latest version of this library as I have fixed some issues.
Sorry, something went wrong.
No branches or pull requests
Hello,
First of all, great work you've done to provide this tool.
Is there a way for me to connect pandas with mongodb atlas URI?
The text was updated successfully, but these errors were encountered: