我有一系列的员工ID和一个使用员工ID的数据框。我想从数据框中删除在系列中具有相应员工ID的所有行
我有提供系列的代码
resigned = employee_change['employee_id'][employee_change['type_of_termination'] == 'resignation']
然后我有一个名为change_employee的数据框,并想删除系列中已签约了employee_id的change_employee的所有行
答案 0 :(得分:1)
change_employee = change_employee.loc[~change_employee['employee_id'].isin(resigned)]