parameters: (data)
return_statement: return data[n//2]
docstring: Return the high median of data.
  
      When the number of data points is odd, the middle value is returned.
      When it is even, the larger of the two middle values is returned.
  
      >>> median_high([1, 3, 5])
      3
      >>> median_high([1, 3, 5, 7])
      5
docstring_summary: Return the high median of data.
docstring_tokens: Return the high median of data .
function: def median_high(data):
      """Return the high median of data.
  
      When the number of data points is odd, the middle value is returned.
      When it is even, the larger of the two middle values is returned.
  
      >>> median_high([1, 3, 5])
      3
      >>> median_high([1, 3, 5, 7])
      5
  
      """
      data = sorted(data)
      n = len(data)
      if n == 0:
          raise StatisticsError("no median for empty data")
      return data[n//2]
function_tokens: def median_high ( data ) : data = sorted ( data ) n = len ( data ) if n == 0 : raise StatisticsError ( "no median for empty data" ) return data [ n // 2 ]