ValueError: ['color']: Expected 2D array, got 1D array instead: array=['yellow' 'white' 'black' 'green' 'red']. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or ...
I was playing around with Brain for a dataset at work, and I noticed that when I provided a roi_field (the detection labels) for a method that relies on clustering, I ...
例外エラーを訳すと、二次元配列が必要ですが、1次元配列が取得したそうです。 良いところまで到達したけれど、何か問題がありそうです。 ちょっと悩んだら、2つの1次元配列を合体させて、2次元配列にすれば良いと思いつきました。 x = pd.DataFrame(df ...