I have a df "survived" that has a common column "contract_id" with another df(df2)
df2 has all different kinds of contracts, but i need to select only those that are present in survived.contract_id
df2[ all_survived['contract_id'] == df2['contract_id']] # not working
ValueError: Can only compare identically-labeled Series objects
I want to choose only those rows that have same contract id from 'survived df'