def update(self, bandit, payout):
        '''
        Update bandit trials and payouts for given bandit.

        Parameters
        ----------
        bandit : int
            Bandit index
        payout : float

        Returns
        -------
        None
        '''

        self.choices.append(bandit)
        self.pulls[bandit] += 1
        self.wins[bandit] += payout
        self.bandits.payouts[bandit] += payout
def update ( self , bandit , payout ) : self . choices . append ( bandit ) self . pulls [ bandit ] += 1 self . wins [ bandit ] += payout self . bandits . payouts [ bandit ] += payout
Update bandit trials and payouts for given bandit.

        Parameters
        ----------
        bandit : int
            Bandit index
        payout : float

        Returns
        -------
        None