I have a data frame with two columns 'Location' and 'Job Title'. I need to check what rows in Job Title have the name of Locations present in them.
        Location    Job Title
0   New York New York   Regional Manager Las Vegas and San Diego
1   New York City   Full Stack Engineer
2   San Francisco Bay Area  Director of Guitar Studies
3   Greater Los Angeles New England Institute of Technology
4   Greater Chicago New England Institute of Technology
... ... ...
984710  NaN Catering Sales Manager
984711  NaN Director, Research & Development and
984712  NaN HR Manager
984713  NaN Director of Development
984714  NaN Development Officer
There are 625 rows in Location and close to a million in Job Location.
I tried df['exist1']= df['Location'].isin(df['Job Title'])
After that, I tried filtering it based on True values but it shows every value under 625 as TRUE. There are no values under 625 in the Location column.
Where am I going wrong? Any help would be greatly appreciated.
 
     
    