Multiple Choices
Answer (Choose 1 answer)
Suppose you want to join train and test dataset (both are two numpy arrays train_set and test_set) into a resulting array (resulting_set) to do data processing on it simultaneously. This is as follows:train_set = np.array([1, 2, 3])test_set = np.array([[0, 1, 2], [1, 2, 3]])resulting_set --> [[1, 2, 3], [0, 1, 2], [1, 2, 3]]How would you join the two arrays?
Note: Numpy library has been imported as np
A. resulting_set = train_set.append(test_set)
B. resulting_set = np.concatenate([train_set, test_set])
C. resulting_set = np.vstack([train_set, test_set])
D. resulting_set = np.hstack([train_set, test_set])