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
评论列表
文章目录