📜  如何根据其他列添加列 - 无论代码示例

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

代码示例1
metadata['class_pnemonia'] = metadata['class'].astype('category').map({0: 'HEALTHY ', 1: 'PNEUMONIA'})