I'm trying to split my x and y into train and test data for my ML model but it's giving me this error: ValueError: Found input variables with inconsistent numbers of samples: [6, 366]
. My numpy array x
looks like this:
array([[2, 3, 4, ..., 31, 1, 2],
[1, 1, 1, ..., 12, 1, 1],
[2021, 2021, 2021, ..., 2021, 2022, 2022],
[53, 53, 1, ..., 52, 52, 52],
[1, 1, 1, ..., 4, 1, 1],
[1, 1, 1, ..., 1, 0, 1]], dtype=object)
x.shape
: (6, 366)
My y
numpy array:
array([ 774.534973, 975.50769 , ... , 3824.19873 ])
With shape: (366,)