def Resample(xs, n=None):
 if (n is None):
  n = len(xs)
 return np.random.choice(xs, n, replace=True)

def Resample ( xs , n = None ) : if ( n is None ) : n = len ( xs ) return np . random . choice ( xs , n , replace = True )
draw a sample from xs with the same length as xs .