np.split cuts an array into equal pieces when the length divides evenly. Split np.arange(9) into 3 parts and print the middle part.
Data analysis labNumPy problems
Problem 38 of 50 · Shape · Medium
Split into equal parts
Cut a length-9 array into three length-3 pieces.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Your solution
2