logo
Loading...

HW6卡住 - Cupoy

dtype_select = ['float64','int64']print(dtype_sele...

ml100-2,語法,ml100-2-d06

HW6卡住

2019/04/27 11:04 PM
機器學習新手論壇
Richard
觀看數:0
回答數: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