Categories
How to add vector to numpy array?
for example there is an array
array()
Answer the question
In order to leave comments, you need to log in
# -*- coding: utf-8 -*- import numpy a = numpy.array() b = numpy.insert(a, 1, numpy.array([1, 2]), 0) print(b)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question