I am trying to apply different value to a df from another column using:
df['url']=
np.where(df['client'] == 'xyz',
"/s?k={query}&s=relevanceblender&page=%s".format(query=df['keyword']),
"other")
however query is replaced by all values of df['keyword'], not only the row in question. thanks for your help.