title: How to insert arange values to pymongo
body: <p><strong>Hello everyone</strong>, I'm trying to upload the co-ordinates of a particular place which I have generated using arange in numpy. Now I want to upload all those generated values to mongo atlas. From the below code I was able to upload 1 value at a time. But i need help in uploading all the generated lat at a time. Your answers would be highly appreciated</p>
  
  <pre><code>import pymongo
  from pymongo import MongoClient
  
  cluster = MongoClient("mongodb+srv://&lt;username&gt;&lt;pass&gt;@cluster0-tcuuq.mongodb.net/test?retryWrites=true&amp;w=majority")
  db = cluster["dbname"]
  collection = db["collection_name"]
  
  post = { 'Lat': 12.941313}
  
  collection.insert_one(post)
  </code></pre>
  
  <p>I'm generating lat values like below</p>
  
  <pre><code>a = np.arange(12.941313, 12.941466, 0.000001)
  a_float = [float("{:.6f}".format(lat)) for lat in a]
  </code></pre>