我有一个数据帧df1看起来像-
user data dep
1 ['dep_78','fg7uy8'] 78
2 ['the_dep_45','34_dep','re23u'] 45
3 ['fhj56','dep_89','hgjl09'] 91
如果“dep”列中的值与“dep”列中的值相匹配,请查看“dep”列中的值。例如,用户1的数据列中的dep_78与dep列中的dep 78匹配。我想输出不匹配的行。所以结果应该会告诉我-
^{pr2}$问题是只取带有字符串“dep”的数据列中的特定值,然后将这些字符串所附的数字与“dep”列进行比较。在
你能做到的
这个怎么样?在
相关问题 更多 >
编程相关推荐