mirror of https://github.com/01-edu/Branch-AI.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
491 B
491 B
Exercise 5: Split, concatenate, reshape arrays
The goal of this exercise is to learn to concatenate and reshape arrays.
-
Generate an array with integers from 1 to 50:
array([1,...,50])
-
Generate an array with integers from 51 to 100:
array([51,...,100])
-
Using
np.concatenate
, concatenate the two arrays into:array([1,...,100])
-
Reshape the previous array into:
array([[ 1, ... , 10], ... [ 91, ... , 100]])