I have a dataframe with columns "sender","recipient","subject", "body". I need to filter the data with an emailid which is in sender or recipient column
df_new=df.loc[(df['sender'] == searchEmail) | (df['recipient'] == searchEmail)]
Filtering is working perfectly, but after filtering print(df_new) shows "subject" and "body" columns are filled with some other data. What is the issue here?