Created
July 22, 2021 18:34
-
-
Save nfarah86/63655ca5230c7d809f084cca7f5ca660 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def insert_data(): | |
"""insert data into a collection""" | |
doc = [{ | |
"id":"t1", "price": "$125.00 ", "latitude": "37.78097", "longitude": "-122.40305" | |
}] | |
rs.Collection.add_docs(collection_name, doc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment