app/lists.py
def calc_histogram(self):
        """Calculates the distribution for subscriber open rate."""
        bin_boundaries = np.linspace(0, 1, num=11)
        bins = (pd.cut(
            self.df.loc[self.df['status'] == 'subscribed', 'avg_open_rate'],
            bin_boundaries, include_lowest=True))
        self.hist_bin_counts = (pd.value_counts(bins, sort=False).tolist())
Calculates the distribution for subscriber open rate.
Calculates the distribution for subscriber open rate.
Calculates the distribution for subscriber open rate .
def calc_histogram(self):
        bin_boundaries = np.linspace(0, 1, num=11)
        bins = (pd.cut(
            self.df.loc[self.df['status'] == 'subscribed', 'avg_open_rate'],
            bin_boundaries, include_lowest=True))
        self.hist_bin_counts = (pd.value_counts(bins, sort=False).tolist())
def calc_histogram ( self ) : bin_boundaries = np . linspace ( 0 , 1 , num = 11 ) bins = ( pd . cut ( self . df . loc [ self . df [ 'status' ] == 'subscribed' , 'avg_open_rate' ] , bin_boundaries , include_lowest = True ) ) self . hist_bin_counts = ( pd . value_counts ( bins , sort = False ) . tolist ( ) )
Calculates the distribution for subscriber open rate.
Calculates the distribution for subscriber open rate .
"""Calculates the distribution for subscriber open rate."""
self