Does this help you in any way?
import numpy as np rows = 3 cols = 4 empty_2d_array = np.empty((rows, cols))