Explore tweets tagged as #LearningNumpy
#learningNumpy.#code.Day.2. 1. slicing array.demo = np.array([1, 2, 3, 4, 5]).demo[1,3] // 2, 3./* include the first item and doesn't include the third item */. 2. step.demo = np.array([1, 2, 3, 4, 5]).demo[1:3:2] // 2.
1
1
0
#learningNumpy.#code.Day.1.1. make the array. demo = np.array([1, 2, 3]).firstItem = demo[0] // 1. 2. getting a multi-D array. demo = no.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]).firstItem = demo[0, 2] // 3./* on the index zero of the index 2 */.
0
1
0