Extracting data from a complex MongoDB database using PyMongo and converting it to a .csv file
Extracting data from a complex MongoDB database using PyMongo and converting it to a .csv file I have a complex MongoDB database, consisting of documents nested upto 7 levels deep. I need to use PyMongo to extract the data, and then convert the extracted data to a .csv file. What have you tried so far? – Adam Smith Jul 2 at 4:08 Can you use mongoexport? – Astro Jul 2 at 4:11 So far I am able to extract the entire database and store it as a Python object. I am then able to convert this object to a .csv file. However the .csv file has thousands of columns. I need to know how I can extract the data in a clean manner. – pack24 Jul 2 at ...