3. get_propertiesの使い方とpubchemとpandasの連携
propertiesとの連携
compound = "alanine"
properties = ['iupacname', 'molecularformula', 'molecularweight', 'canonicalsmiles']
df_alanine = pcp.get_properties(properties, compound, 'name', as_dataframe=True)
df_alanine
pubchemとpandasの連携 (分子式検索)
分子式検索との連携でいろんな化合物も検索できる。
df_C20H41Br = pcp.get_compounds('C20H41Br', 'formula', as_dataframe=True)
df
ただし、呼び出す数が多すぎるとエラーになる。