Premium problem54. Parse a Messy CSV

Medium Locked

Parse the CSV text (comma-delimited, with missing values) into an integer array, filling missing values with 0.

Input

1, 2, 3, 4, 5
6,  ,  , 7, 8
 ,  , 9,10,11

Output

[[ 1  2  3  4  5]
 [ 6  0  0  7  8]
 [ 0  0  9 10 11]]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)