📌  相关文章
📜  循环遍历数据框列并返回唯一值 - Python 代码示例

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

代码示例1
which_columns = ... # specify the columns whose unique values you want here

uniques = {col: df[col].unique() for col in which_columns}