scikit-learnのClassifierでValueError: Expected 2D array, got 1D array instead:
対処法も案内される
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
「データがただ1つの特徴量を持つならarray.reshape(-1, 1)」
「データがただ1つのサンプルを含むならarray.reshape(1, -1)」
(TODO:もう少し掘り下げたい)