Home / Python Numpy / How to Create a Uni-dimensional Or 1-D NumPy Array In this example we will show how to create a uni-dimensional or 1-D NumPy array in Python. Source Code import numpy as np n = np.array([1, 2, 3, 4]) print(n) Output: [1 2 3 4]