[P/M/K] How to select specific columns

How to select specific columns

When dataframe comes with a variety of types, sk.select_dtypes() will be helpful.

train.select_dtypes(np.int64)

for i, col in enumerate(train.select_dtypes('float')):

猜你喜欢

转载自blog.csdn.net/qq_40820196/article/details/82415917
今日推荐