code: def percentile_for_in(self, leaderboard_name, member):
          '''
          Retrieve the percentile for a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @return the percentile for a member in the named leaderboard.
          '''
          if not self.check_member_in(leaderboard_name, member):
              return None
  
          responses = self.redis_connection.pipeline().zcard(
              leaderboard_name).zrevrank(leaderboard_name, member).execute()
  
          percentile = math.ceil(
              (float(
                  (responses[0] -
                   responses[1] -
                   1)) /
                  float(
                      responses[0]) *
                  100))
  
          if self.order == self.ASC:
              return 100 - percentile
          else:
              return percentilf percentile_for_in(self, leaderboard_name, member):
          '''
          Retrieve the percentile for a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @return the percentile for a member in the named leaderboard.
          '''
          if not self.check_member_in(leaderboard_name, member):
              return None
  
          responses = self.redis_connection.pipeline().zcard(
              leaderboard_name).zrevrank(leaderboard_name, member).execute()
  
          percentile = math.ceil(
              (float(
                  (responses[0] -
                   responses[1] -
                   1)) /
                  float(
                      responses[0]) *
                  100))
  
          if self.order == self.ASC:
              return 100 - percentile
          else:
              return percentile
docs: Retrieve the percentile for a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @return the percentile for a member in the named leaderboard.