May-18-2018, 05:00 AM
You can convert
y
to list using .tolist()
method, e.g. y = np.loadtxt('text.txt', dtype=np.object) y = y.tolist()Another way is to use standard pickle module.