SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
np.concatenate((a, np.array([a[0]])))
http://docs.scipy.org/doc/numpy/reference/generated/numpy.concatenate.html
concatenate needs both elements to be numpy arrays; however, a[0] is not an array. That is why it does not work.