i'm new to python and stuck with this problem
so i want to compare between column rosyi and azmi, if the column have "_" the result will be "other" and if the column have "http" with the same value the result will be "agreed"
would anyone suggest what library and how to use it
i've tried compare with
import pandas as pd
import numpy as np
df = pd.read_excel('rosyi.xlsx')
df['Diff'] = np.where(df['Rosyi'] & df['Azmi'] , '0', '1')
df
but the result with _ and https will be the same
Result
i understood that this isnt a method that i want, but im stuck very hard