ValueError Traceback (most recent call last)
in ()
1 sc = StandardScaler() # 創建一個標準化的物件
2 sc.fit(dummies) # 針對df的資料進行計算
----> 3 dummies_std = sc.transform(df) # 生成標準化資料
4 frames
/usr/local/lib/python3.7/dist-packages/numpy/core/_asarray.py in asarray(a, dtype, order)
81
82 """
---> 83 return array(a, dtype, copy=False, order=order)
84
85
ValueError: could not convert string to float: 'high'