title: Renaming a Collection Using Pymongo
body: <p>I realize that a collection can be renamed in MongoDB using </p>
  
  <pre><code>db["old_name"].renameCollection("new_name")
  </code></pre>
  
  <p>But is there an equivalent in PyMongo? I tried the following, but it didn't work either.</p>
  
  <pre><code>db["old_name"].rename_collection("new_name")
  </code></pre>