SyntaxFix
Write A Post
Hire A Developer
Questions
Just pass the list to np.array:
np.array
a = np.array(a)
You can also take this opportunity to set the dtype if the default is not what you desire.
dtype
a = np.array(a, dtype=...)