Bagaimana saya bisa menduplikasi array 1 dimensi
# welcome to softhunt.net
# Python Program illustrating
# numpy.repeat()
import numpy as np
np_array_1d = np.array([1,2,3,4])
np_array_2d = np.expand_dims(np_array_1d, axis = 0)
ans = np.repeat(a = np_array_2d, repeats = 2, axis = 0)
print(ans)
Outrageous Ostrich