def medcouple(y, axis=0):
 if (axis is None):
  return _medcouple_1d(y.ravel())
 return np.apply_along_axis(_medcouple_1d, axis, y)

def medcouple ( y , axis = 0 ) : if ( axis is None ) : return _medcouple_1d ( y . ravel ( ) ) return np . apply_along_axis ( _medcouple_1d , axis , y )
calculates the medcouple robust measure of skew .