[[+content_image]]
B
B
bimka2019-10-27 20:51:22
Python
bimka, 2019-10-27 20:51:22

How to merge multiple arrays into one array in numpy?

def viborka(n):
    return t.rvs(df, size = n)

a = np.array([viborka(5) for i in range(1000)])

[[ 0.87107139  0.73471817  1.12813296 -1.2529901  -0.56168773]
 [ 0.40370233  0.20711448  1.14176855 -1.27929904 -3.86284412]
 [-0.70015447 -0.68235379 -0.23642686  0.71142451 -0.74478162]
 ...
 [ 1.20858522  1.99604528  0.90842576 -1.49043836 -0.99727057]
 [ 0.5369018   0.29211762 -0.28301642 -1.20588265 -1.61612353]
 [-0.68444407  0.27632502 -0.96742727 -1.889158    0.34913005]]

Is there a function in numpy that allows you to turn arrays in an array into one array in one step?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Andrey Dugin, 2019-10-28
@adugin

Have you tried reading the documentation ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question