これはコードであり、非数値データを数値に変換しようとしています。しかし、それは誤りとValueErrorを返す:ディメンション26 でアレイ軸にサイズ205でシーケンスをコピーすることはできませんデータがhttp://archive.ics.uci.edu/ml/datasets/Automobileエラーの意味ValueError:サイズが205のシーケンスを次元26の配列軸にコピーできず、それを解決する方法
automobile = pd.read_csv('imports-85.csv', names = ["symboling",
"normalized-losses", "make", "fuel", "aspiration", "num-of-doors", "body-
style", "drive-wheels", "engine-location", "wheel-base", "length", "width",
"height", " curb-weight", "engine-type", "num-of-cylinders","engine-
size","fuel-system","bore","stroke"," compression-ratio","horsepower","peak-
rpm","city-mpg","highway-mpg","price"])
X = automobile.drop('symboling',axis=1)
y = automobile['symboling']
le = preprocessing.LabelEncoder()
le.fit([automobile])
print (le)