Top "Pymongo" questions

PyMongo is the official Python driver for MongoDB created and maintained by MongoDB, Inc.

mongo - couldn't connect to server 127.0.0.1:27017

I am coming from riak and redis where I never had an issue with this services starting, or to interact. …

mongodb pymongo
JSON ValueError: Expecting property name: line 1 column 2 (char 1)

I am having trouble using json.loads to convert to a dict object and I can't figure out what I'm …

python json pymongo
How to sort mongodb with pymongo

I'm trying to use the sort feature when querying my mongoDB, but it is failing. The same query works in …

python mongodb pymongo
How to update values using pymongo?

I've a mongodb collection in this form: {id=ObjectId(....),key={dictionary of values}} where dictionary of values is {'a':'1…

python mongodb pymongo
How do I update a Mongo document after inserting it?

Let's say I insert the document. post = { some dictionary } mongo_id = mycollection.insert(post) Now, let's say I want to …

python mongodb pymongo database
Query Mongodb on month, day, year... of a datetime

I'm using mongodb and I store datetime in my database in this way for a date "17-11-2011 18:00" I store: …

python mongodb datetime mongodb-query pymongo
How to convert a pymongo.cursor.Cursor into a dict?

I am using pymongo to query for all items in a region (actually it is to query for all venues …

python mongodb dictionary mongodb-query pymongo
How to find names of all collections using PyMongo?

How to find names of all collections using PyMongo and find all fields in chosen collection ? I have name of …

python pymongo
How to import data from mongodb to pandas?

I have a large amount of data in a collection in mongodb which I need to analyze. How do i …

python mongodb pandas pymongo
ImportError: No module named 'pymongo'

I have a problem running pymongo on Win 7 (64) with Python 3.4, mongodb 4.2.10. The error output is as follows: import pymongo ImportError: …

python mongodb pymongo