Created
May 18, 2020 06:46
-
-
Save nfarah86/e43f4ad2d8f7e3ca4b8d761408bc853c to your computer and use it in GitHub Desktop.
insert_to_mongo function
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_to_mongo(weather_data, air_pollution_data): | |
""" insert weather data and traffic data to the proper collections """ | |
print("inserting into mongo") | |
weather_data_collection.insert_one(weather_data) | |
pollution_data_collection.insert_one(air_pollution_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment