This is undoubtedly another noobish question, but I will ask it anyway:
I have a set of event events with the exact time and time in UTC. I would like to create a line chart showing the total number of events by day (date) in a specified date range. Right now I can get a common dataset for the desired date range, but then I need to go through it and count for each date.
The application runs on the Google engine and uses python.
What is the best way to create a new dataset showing the date and corresponding counts (including if there were no events on that date) that I can use to transfer this information to the django template?
The data set for this example is as follows:
class Event(db.Model):
event_name = db.StringProperty()
doe = db.DateTimeProperty()
dlu = db.DateTimeProperty()
user = db.UserProperty()
Ideally, I want something with a date and quantity for that date.
Thank you and please let me know if something else is needed to answer this question!
source
share