Reshape the given 1D array of 12 elements into a 3x4 matrix.
NumPy array arr with 12 elements: [1, 2, 3, ..., 12]
arr into a 3-row, 4-column 2D arrayReady to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.