(self)
return decimal.Decimal(str(canceled)) / decimal.Decimal(str(active))
Return number of canceled Subscriptions divided by active Subscriptions.
Return number of canceled Subscriptions divided by active Subscriptions.
Return number of canceled Subscriptions divided by active Subscriptions .
def churn(self):
        """Return number of canceled Subscriptions divided by active Subscriptions."""
        canceled = self.canceled().count()
        active = self.active().count()
        return decimal.Decimal(str(canceled)) / decimal.Decimal(str(active))
def churn ( self ) : canceled = self . canceled ( ) . count ( ) active = self . active ( ) . count ( ) return decimal . Decimal ( str ( canceled ) ) / decimal . Decimal ( str ( active ) )