Hi I want to compare the data between between John and Kelly. Sometimes for a John column (here "world_john"), Kelly does not have an affilated "world_kelly" column and vice versa. world_john need to be removed since there is no comparison to make. Is this possible in general code?
df
`` world_john fruit_list_john fruit_list_kelly output_john output_kelly
0 The start hungry banana high high
1 world pear apple high high
2 yesterday fruit pear high high
...
Expected Output:
fruit_list_john fruit_list_kelly output_john output_kelly
0 hungry banana high high
1 pear apple high high
2 fruit pear high high