Sometimes the printed numpy array is provide to share the data such as this post. So far, I converted that manually. But the array in the post is too big to con
You can use re to treat the string and then create the array using eval():
import re
from ast import literal_eval
import numpy as np
a = """[[[ 0 1]
[ 2 3]]]"""
a = re.sub(r"([^[])\s+([^]])", r"\1, \2", a)
a = np.array(literal_eval(a))