I am trying to write a model in a GAE data warehouse that will have three fields: date, integer, integer.
class fusSent(db.Model): """ Models a list of the follow-ups due and follow-ups sent """ date_created = db.DateTimeProperty(auto_now_add=True) fu_date = db.DateProperty() fus_due = db.IntegerProperty() fus_sent = db.IntegerProperty()
This data comes from two different dictionaries with corresponding keys (dates). See below.
fus_d = {2013-01-01: 1, 2013-04-01: 1, 2013-02-01: 1, 2013-03-01: 1} fus_s = {2013-01-01: 0, 2013-04-01: 0, 2013-02-01: 1, 2013-03-01: 1}
I assume that I need to combine the dictionaries into a list (for example, the one below) in order to store it in a data warehouse. However, I am not entirely sure that this is the best approach.
fu_list = [(2013-01-01, 1, 0), (2013-04-01, 1, 0), (2013-02-01, 1, 1), (2013-03-01, 1, 1)]
source share