📜  选择分类列 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:46.286000             🧑  作者: Mango

代码示例2
# get all categorical columns in the dataframe
catCols = [col for col in df.columns if df[col].dtype=="O"]