logo
Loading...

請問老師,我想把變數df1~df9用for迴圈印出來,應該要怎麼做呢? - Cupoy

#int_features df1 =df[int_features].mean()df2=df[i...

m100-3-d07,ml100-3

請問老師,我想把變數df1~df9用for迴圈印出來,應該要怎麼做呢?

2019/09/07 04:29 PM
機器學習新手論壇
吳冠穎
觀看數:0
回答數:1
收藏數:1
m100-3-d07
ml100-3

#int_features 

df1 =df[int_features].mean()

df2=df[int_features].max()

df3=df[int_features].nunique()

#float_features

df4=df[float_features].mean()

df5=df[float_features].max()

df6=df[float_features].nunique()

#object_features 

df7=df[object_features].mean() 

df8=df[object_features].max()

df9=df[object_features].nunique()

print(df1)

print(df2)

print(df3)

print(df4)

print(df5)

print(df6)

print(df7)

print(df8)

print(df9)