📜  使用字典创建一列值 - Python 代码示例

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

代码示例1
df['col1'].map(di)       # note: if the dictionary does not exhaustively map all
                         # entries then non-matched entries are changed to NaNs