master
chaopower 2024-02-04 13:29:02 +08:00
parent 4dff3bf0b0
commit 732c0df038
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ def database():
drug_mechanism_df['drugs'] = drug_mechanism_df.apply(lambda x: '|'.join(
[tm.upper() for tm in [x['药物名称-英文'], x['药物名称-中文']] if tm != '.']), axis=1)
drug_mechanism_df['dec'] = drug_mechanism_df.apply(lambda x: "||".join(
[tm for tm in [x['适应症(中文)'], x['作用机制-中文']] if tm != '.']), axis=1)
[tm.upper() for tm in [x['适应症(中文)'], x['作用机制-中文']] if tm != '.']), axis=1)
# return {drugA: drugAdes\\\\drugAdes中文 drugA中文: drugAdes\\\\drugAdes中文}
drug_mechanism = {}
for _, row in drug_mechanism_df.iterrows():

File diff suppressed because one or more lines are too long