logo
← 返回面试题库

Given a Dataframe df with a 'Gender' column ('Male' or 'Female'), how can you map this column to binary values (1 for 'Male', 0 for 'Female')?

中等pythonmachine-learning

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案