HW6卡住
2019/04/28 07:04 上午
機器學習共學討論版
Richard
觀看數:3
回答數:4
收藏數:1
ml100-2
語法
ml100-2-d06
dtype_select = ['float64','int64']
print(dtype_select)
numeric_columns = list(app_train.columns[list(app_train.dtypes.isin(dtype_select))])
print(list(app_train.dtypes.isin(dtype_select)))
這樣寫,是不是有問題?
為什麼float64對應欄位的是TRUE,而int64對應欄位的是FALSE?
接下來為什麼程式跑到這行,會有error?
11 print("Numbers of remain columns" % len(numeric_columns))
12
13 # 檢視這些欄位的數值範圍
TypeError: not all arguments converted during string formatting