app/lists.py
def calc_cur_yr_stats(self):
        """Calculates metrics related to activity
        that occured in the previous year."""

        # Total number of subsribers without an open within the last year
        cur_yr_inactive_subs = (self.subscribers -
                                int(self.df['recent_open'].count()))

        # Percent of such subscribers
        self.cur_yr_inactive_pct = cur_yr_inactive_subs / self.subscribers
Calculates metrics related to activity
        that occured in the previous year.
Calculates metrics related to activity
that occured in the previous year.
Calculates metrics related to activity that occured in the previous year .
def calc_cur_yr_stats(self):
        cur_yr_inactive_subs = (self.subscribers -
                                int(self.df['recent_open'].count()))
        self.cur_yr_inactive_pct = cur_yr_inactive_subs / self.subscribers
def calc_cur_yr_stats ( self ) : cur_yr_inactive_subs = ( self . subscribers - int ( self . df [ 'recent_open' ] . count ( ) ) ) self . cur_yr_inactive_pct = cur_yr_inactive_subs / self . subscribers
Calculates metrics related to activity
that occured in the previous year.
Calculates metrics related to activity that occured in the previous year .
"""Calculates metrics related to activity
        that occured in the previous year.""" # Total number of subsribers without an open within the last year
 # Percent of such subscribers

self