Flatten List Python Using Numpy Library