0
另一个数据帧的数据帧的价值观我有df_1包含两个数据帧:查找在Python
["TP","MP"]
和df_2包含:
["This is case 12389TP12098","12378MP899" is now resolved","12356DCT is pending"]
我想在df_1搜索在每个使用值它输入df_2 并返回匹配的那些。在这种情况下,那两个有TP,MP的条目。
我试过这样的事情。
df_2.str.contains(df_1)