I have a list of 1752 private company names. I would like to ask how to extract TR.CommonName and TR.RIC for all of the 1752 companies.
I use the following code to obtain TR.CommonName and TR.RIC for Jetstar
df, err = ek.get_data([SCREEN(U(IN(Private(OrgType(COM,UNK,MKP)))),Contains(TR.CommonName, Jetstar))], [TR.CommonName,TR.RIC])
when I try to apply the code to a list of company names like following, I notice that eikon search for companies with names that contains the character "company_list [x]", instead of the value that company_list [x] refers to.
for x in company_list[0,1751]
df_1 = df
df_2, err = ek.get_data(['SCREEN(U(IN(Private(OrgType(COM,UNK,MKP)))),Contains(TR.CommonName,company_list [x]))'], ['TR.CommonName','TR.RIC'])
df_2["MerchantName"] = company_list [x]
df_merged = pd.concat([df_1,df_2],ignore_index = True)
df = df_merged
Thank you very much.