def list_mru(self, fday, tday): """ monthly rechange user count list_mnu(string, string) -> [(datetime1, int),(datetime2,int),....] """ lMonth = util.month1stdate(fday, tday) return zip(lMonth, map(self.get_mru, lMonth))
def get_month_retained(self, fday, tday): """ monthly retained au count from fday's month to tday's month """ lMdates1 = util.month1stdate(fday, tday) return zip( lMdates1, self.make_bitmap(lMdates1[0], 'mau').retained_count( (self._make_bitmap(date, 'mau') for date in lMdates1)))
def get_month_retained(self, fday, tday): """ monthly retained au count from fday's month to tday's month """ lMdates1 = util.month1stdate(fday, tday) return zip(lMdates1, self.make_bitmap(lMdates1[0],'mau').retained_count( (self._make_bitmap(date, 'mau') for date in lMdates1) ) )
def get_month_retained_nu(self, fday, tday): """ Monthly newuser retained count from fday's month to tday's month """ lMdates1 = util.month1stdate(fday, tday) MnuBitmap = self.get_newuser_bitmap(lMdates1[0], 'mnu') # logging.info('Newusers count: %s', MnuBitmap.count()) return [[lMdates1.pop(0), MnuBitmap.count()]] + zip( lMdates1, MnuBitmap.retained_count( (self._make_bitmap(date, 'mau') for date in lMdates1)))
def get_month_retained_nu(self, fday, tday): """ Monthly newuser retained count from fday's month to tday's month """ lMdates1 = util.month1stdate(fday, tday) MnuBitmap = self.get_newuser_bitmap(lMdates1[0], 'mnu') # logging.info('Newusers count: %s', MnuBitmap.count()) return [[lMdates1.pop(0), MnuBitmap.count()]]+zip(lMdates1, MnuBitmap.retained_count( (self._make_bitmap(date, 'mau') for date in lMdates1) ) )