def _incompat_bottleneck_version(method):
 if (method not in ['sum', 'prod']):
  return False
 try:
  import bottleneck as bn
  return (bn.__version__ >= LooseVersion('1.0'))
 except ImportError:
  return False

def _incompat_bottleneck_version ( method ) : if ( method not in [ 'sum' , 'prod' ] ) : return False try : import bottleneck as bn return ( bn . __version__ >= LooseVersion ( '1.0' ) ) except ImportError : return False
skip if we have bottleneck installed and its >= 1 .