code: def spikey(data):
      """Calculates the "spikey-ness" of the histogram.
  
      Spikeyness is the ratio between the tallest bin and the average bin height.
  
      Args:
          data: The 1-d data array
  
      Returns:
          Ratio of the tallest bin height and the average bin height.
      """
      if _is_series(data):
          data = data.dropna()
      else:
          data = data[~np.isnan(data)]
      counts, bins = np.histogram(data, bins="sturges")
      return max(counts) / np.mean(counts)
  
imports: import numpy
  from scipy.stats import skew
  from data_describe.compat import _is_series
label_desc: Use image node_id 1 for calling a global function with example usage: spikey(data) and returns: unknown