Numpy Exercise
Numpy ExerciseCreate a boolean arraynp.full((3,3), True, dtype=bool)array([[ True, True, True], [ True, True, True], [ True, True, True]])np.full(shape, fill_value, dtype=None)shape : 생성할 array의 shape을 지정fill_value : 생성할 array의 값을 지정dtype : 생성할 array의 자료형(data type)을 지정Stack arrays a and b verticallya = np.arange(10).reshape(2,-1)b = np.repeat(1, 10).reshape(2,-1)np.concatenate([a,b..
2024.07.16