I have a DataFrame named score_df having one column named Score and there are names of indices as following
Score
year 0.029827
yesterday 0.029827
you 0.089482
zeros 0.029827
zones 0.029827
I have another df having a column named df['keywords'] having various keywords. I need to iterate over this column and search in indices of score_df and if index matches with keyword I need to append it's Score value in a list. I am using following code.
for key_w in df['keyword'].to_list():
result = score_df.loc[key_w, :]
But it is giving KeyError: 'keyword value'. Can some help me how can I select required value? Thank you
print ( df['keyword'])?