1D numpy concatenate: TypeError: only integer scalar arrays can be converted to a scalar index [duplicate] March 2, 2023 by Tarik You need to pass the arrays as an iterable (a tuple or list), thus the correct syntax is x=np.concatenate((x, s_x))