@@ -0,0 +1,1301 @@
+# calculate_totals.py%0A%0Aimport json%0Aimport datetime%0Afrom collections import defaultdict%0A%0A# http://stackoverflow.com/questions/6999726/how-can-i-convert-a-datetime-object-to-milliseconds-since-epoch-unix-time-in-p%0Adef unix_time(dt):%0A    epoch = datetime.datetime.utcfromtimestamp(0)%0A    delta = dt - epoch%0A    return delta.total_seconds()%0A%0Adef unix_time_millis(dt):%0A    return unix_time(dt) * 1000%0A%0A%0A%0Aevent_rsvps = defaultdict(int)%0Aevent_counts = defaultdict(int)%0Ajson_object = %7B%7D%0A%0Awith open('groups.json') as group_json:%0A    group_data = json.load(group_json)%0A%0Afor g in group_data%5B0%5D%5B%22groups%22%5D:%0A    #print(g)%0A    mfile = %22meetup_history_%22 + g +%22.json%22%0A    #print(mfile)%0A%0A    with open(mfile) as mjson:%0A        dat = json.load(mjson)%0A        for d in dat:%0A            msepoch = d%5B'time'%5D%0A            #print(msepoch, d%5B'yes_rsvp_count'%5D)%0A            x = datetime.date.fromtimestamp(msepoch/1000)%0A            #print(x)%0A            monthdate = datetime.datetime(x.year, x.month, 1)%0A            #print(monthdate)%0A            event_rsvps%5Bmonthdate%5D += d%5B'yes_rsvp_count'%5D%0A            event_counts%5Bmonthdate%5D += 1%0A%0A%0Afor k,v in sorted(event_rsvps.iteritems()):%0A    print(k,v, event_counts%5Bk%5D)%0A    millis = unix_time_millis(k)%0A    #print('%25f' %25 millis)%0A    #print('%7B0:f%7D'.format(millis))%0A    print(int(millis))%0A

Add a py script to get monthly totals.