df.drop(col_names_list, axis=1, inplace=True) returndf 有時,并不是所有列的數(shù)據(jù)都對我們的數(shù)據(jù)分析工作有用。因此,「df.drop」可以方便地刪掉你選定的列。 2. 轉(zhuǎn)換 Dtypes 1 2 3 4 5 6 7 8 9 10 11 defchange_dtypes(col_int, col_float, df): ...
www.dbjr.com.cn/article/2352...htm 2025-5-26