def test_bootstrap_axis():
 x = rs.randn(10, 20)
 n_boot = 100
 out_default = algo.bootstrap(x, n_boot=n_boot)
 assert_equal(out_default.shape, (n_boot,))
 out_axis = algo.bootstrap(x, n_boot=n_boot, axis=0)
 assert_equal(out_axis.shape, (n_boot, 20))

def test_bootstrap_axis ( ) : x = rs . randn ( 10 , 20 ) n_boot = 100 out_default = algo . bootstrap ( x , n_boot = n_boot ) assert_equal ( out_default . shape , ( n_boot , ) ) out_axis = algo . bootstrap ( x , n_boot = n_boot , axis = 0 ) assert_equal ( out_axis . shape , ( n_boot , 20 ) )
test axis kwarg to bootstrap function .