title: pymongo cursor to Pandas dataframes
body: <p>I need to convert my mongodb cursor to pandas dataframe. I want to avoid the use of lists directly using <code>data = list(collection.find())</code> but it goes out of memory, occupies a lot of memory. suggest me an efficient way to use lists or an alternative solution for this.</p>
  
  <p>I have used a list to convert in pandas dataframe. It goes out of memory and stops the execution.</p>
  
  <pre><code>collection = db.get_collection('xxxyyyzzz')
  data = collection.find()
  for i in data:
     lst = pd.DataFrame(list.append(data))
  </code></pre>
  
  <p>I want to convert cursor to dataframe.</p>