matching.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:MentorMenteeMatching 作者: datacommunitydc 项目源码 文件源码
def extractMentorsMentees(data):
  # mentors = pd.DataFrame([row for row in data.iterrows() if (fuzz.ratio(row[1][cmap[4]], "Mentor")>90)])
  # mentees = pd.DataFrame([row for row in data.iterrows() if (fuzz.ratio(row[1][cmap[4]], "Mentee")>90)])
  mentors = data[data[cmap[4]] == "Mentor"]
  mentees = data[data[cmap[4]] == "Mentee"]
  mentors['xx'] = list(range(len(mentors)))
  mentees['xx'] = list(range(len(mentees)))
  return mentors, mentees
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号