• matminer获取数据


    materials project

    matminer.data_retrieval.retrieve_MP.MPDataRetrieval获取materials project数据

    from matminer.data_retrieval.retrieve_MP import MPDataRetrieval
    
    • 1
    mpdr=MPDataRetrieval(api_key='')
    
    • 1
    #得到所有元素材料的密度,例如那些包含一个元素的材料
    df=mpdr.get_dataframe(criteria={'nelements':1},
                          properties=['density','pretty_formula'])
    print('there are %d enties on  MP with 1 element'%(df['density'].count()))
    
    • 1
    • 2
    • 3
    • 4
      0%|          | 0/716 [00:00<?, ?it/s]
    
    
    there are 716 enties on  MP with 1 element
    
    • 1
    • 2
    • 3
    • 4

    获取大于4.0 eV 的所有带隙

    带隙是 band_gap,大于4怎么写呢? 是 greater than, 缩写成 gt. 在 matminer中要写成 $gt

    df=mpdr.get_dataframe({'band_gap':{'$gt':4.0}},['pretty_formula','band_gap'])
    
    • 1
      0%|          | 0/8285 [00:00<?, ?it/s]
    
    • 1
    df.head()
    
    • 1
    pretty_formulaband_gap
    material_id
    mp-10080PrGeBO54.0136
    mp-1020145Na2Ge(S2O7)34.0030
    mp-1021327KLiICl4.0542
    mp-1029718CsC2N34.0731
    mp-1029920Y2(CN2)34.0364

    Get all VRH shear and bulk moduli from the “elasticity” sub-document for which no warnings are found

    存在弹性常数信息用 “elasticity”: {“$exists”: True} 表示,没有警告信息用 一个空列表表示:“elasticity.warnings”: []

    df=mpdr.get_dataframe({"elasticity":{"$exists":True}},
                         ['pretty_formula','elasticity.K_VRH','elasticity.G_VRH'])
    
    • 1
    • 2
      0%|          | 0/13172 [00:00<?, ?it/s]
    
    • 1
    df.head()
    
    • 1
    pretty_formulaelasticity.K_VRHelasticity.G_VRH
    material_id
    mp-10003Nb4CoSi191.097.0
    mp-1001023BeC283.045.0
    mp-1001788ZrB6179.041.0
    mp-1002122HfIr202.012.0
    mp-1002206SiC241.0176.0

    除了上次的搜索条件外,我们想搜索包含 Pb 和 Te 的材料:“elements”: {“KaTeX parse error: Expected '}', got 'EOF' at end of input: …above_hull": {"lt”: 1e-6}

    df=mpdr.get_dataframe(criteria={"elasticity":{'$exists':True},
                                   'elasticity.warnings':[],
                                   'elements':{'$all':['Pb','Te']},
                         'e_above_hull':{'$lt':1e-6}},
                         properties=['elasticity.K_VRH','elasticity.G_VRH',
                                    'pretty_formula','e_above_hull','bandstructure',
                                    'dos'])
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    让我们来看看
    这些稳定化合物的能带结构和状态密度,这些化合物包含 Pb 和 Te,这对热电学应用很有意思:

    df.head()
    
    • 1
    elasticity.K_VRHelasticity.G_VRHpretty_formulae_above_hullbandstructuredos
    material_id
    mp-1971740.024.0TePb0<pymatgen.electronic_structure.bandstructure.B...Complete DOS for Full Formula (Te1 Pb1)\nReduc...
    mp-2074025.013.0Tl4Te3Pb0<pymatgen.electronic_structure.bandstructure.B...Complete DOS for Full Formula (Tl8 Te6 Pb2)\nR...
    mp-60502834.016.0Te2Pd3Pb20<pymatgen.electronic_structure.bandstructure.B...Complete DOS for Full Formula (Te4 Pd6 Pb4)\nR...
    from pymatgen.electronic_structure.plotter import BSDOSPlotter
    
    • 1
    E:\Anaconda\lib\site-packages\pymatgen\electronic_structure\boltztrap.py:58: FutureWarning: which is deprecated; use which in shutil instead.
    shutil.which has been available since Python 3.3. This will be removed in v2023.
      which("x_trans"),
    
    • 1
    • 2
    • 3
    mpid='mp-20740'
    idx=df.index[df.index==mpid][0]
    
    • 1
    • 2
    import matplotlib.pyplot as plt
    BSDOSPlotter().get_plot(bs=df.loc[mpid,'bandstructure'],dos=df.loc[mpid,'dos'])
    plt.show()
    
    • 1
    • 2
    • 3

    在这里插入图片描述

    Citrine informatics

    from matminer.data_retrieval.retrieve_Citrine import CitrineDataRetrieval
    
    • 1
    cdr=CitrineDataRetrieval(api_key='')
    
    • 1
    df=cdr.get_dataframe(criteria={'formula':'Si',
                                  'data_type':'EXPERIMENTAL'},
                        properties=['Bnad gap'],
                        secondary_fields=True)
    
    • 1
    • 2
    • 3
    • 4
    0it [00:00, ?it/s]
    
    all available fields:
    []
    
    suggested common fields:
    []
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    
    cdr.get_dataframe?
    
    • 1
    • 2

    得到 O * 和 OH * 的吸附能

    df_OH=cdr.get_dataframe(criteria={},properties=['adsorption energy of OH'],
                          secondary_fields=True)
    
    • 1
    • 2
      0%|                                                                                            | 0/9 [00:00<?, ?it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     11%|█████████▎                                                                          | 1/9 [00:00<00:01,  5.39it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     44%|█████████████████████████████████████▎                                              | 4/9 [00:00<00:00, 15.13it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     78%|█████████████████████████████████████████████████████████████████▎                  | 7/9 [00:00<00:00, 19.22it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    100%|████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:00<00:00, 17.45it/s]
    
    
    all available fields:
    ['category', 'chemicalFormula', 'Adsorption energy of OH', 'references', 'uid', 'Morphology', 'Adsorption energy of OH-units', 'Adsorption energy of OH-conditions', 'Surface facet', 'Adsorption energy of OH-dataType']
    
    suggested common fields:
    ['references', 'chemicalFormula', 'Surface facet', 'Adsorption energy of OH', 'Adsorption energy of OH-units', 'Adsorption energy of OH-dataType', 'Morphology', 'Adsorption energy of OH-conditions']
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    df_O=cdr.get_dataframe(criteria={},properties=['adsorption energy of O'],
                          secondary_fields=True)
    
    • 1
    • 2
      0%|                                                                                           | 0/21 [00:00<?, ?it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     14%|███████████▊                                                                       | 3/21 [00:00<00:00, 28.91it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     29%|███████████████████████▋                                                           | 6/21 [00:00<00:00, 27.23it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     43%|███████████████████████████████████▌                                               | 9/21 [00:00<00:00, 24.81it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     57%|██████████████████████████████████████████████▊                                   | 12/21 [00:00<00:00, 25.41it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     71%|██████████████████████████████████████████████████████████▌                       | 15/21 [00:00<00:00, 25.99it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
     86%|██████████████████████████████████████████████████████████████████████▎           | 18/21 [00:00<00:00, 25.90it/s]E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:123: FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead.
      system_normdf = json_normalize(system_value)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:129: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      non_prop_df = non_prop_df.append(non_prop_row)
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_Citrine.py:167: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
      prop_df = prop_df.append(p_df)
    100%|██████████████████████████████████████████████████████████████████████████████████| 21/21 [00:00<00:00, 25.96it/s]
    
    all available fields:
    ['Adsorption energy of O-conditions', 'Reconstruction', 'category', 'chemicalFormula', 'Adsorption energy of O', 'references', 'uid', 'Adsorption energy of O-units', 'Surface facet']
    
    suggested common fields:
    ['references', 'chemicalFormula', 'Surface facet', 'Adsorption energy of O', 'Adsorption energy of O-units', 'Adsorption energy of O-conditions', 'Reconstruction']
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    df_OH.head()
    
    • 1
    referenceschemicalFormulaSurface facetAdsorption energy of OHAdsorption energy of OH-unitsAdsorption energy of OH-dataTypeMorphologyAdsorption energy of OH-conditions
    1[{'citation': '10.1039/c2cc30281k', 'doi': '10...Pt(111)2.44eVNaNNaNNaN
    2[{'citation': '10.1016/s1872-2067(12)60642-1',...Cu(211)-3.55eVCOMPUTATIONALNaNNaN
    3[{'citation': '10.1016/s1872-2067(12)60642-1',...ZnONaN-3.03eVCOMPUTATIONALThin filmNaN
    4[{'citation': '10.1016/j.corsci.2012.11.011', ...Fe(100)-3.95eVNaNNaNNaN
    5[{'citation': '10.1021/jp807094m', 'doi': '10....Pt(111)2.71eVNaNNaN[{'name': 'Site', 'scalars': [{'value': 'Top s...
    df_O.head()
    
    • 1
    referenceschemicalFormulaSurface facetAdsorption energy of OAdsorption energy of O-unitsAdsorption energy of O-conditionsReconstruction
    1[{'citation': '10.1016/j.jcat.2007.04.018', 'd...Fe(111)-5.42eVNaNNaN
    2[{'citation': '10.1002/cctc.201100308', 'doi':...Pt(111)1.53eVNaNNaN
    3[{'citation': '10.1021/jp307055j', 'doi': '10....Pt(111)-4.54eVNaNNaN
    4[{'citation': '10.1021/jp710674q', 'doi': '10....Co(0001)2.37eV[{'name': 'Site', 'scalars': [{'value': 'FCC s...NaN
    5[{'citation': '10.1007/bf00806980', 'doi': '10...Rh(110)-300kJ/molNaNNaN

    MPDS - The Materials Platform for Data Science

    from matminer.data_retrieval.retrieve_MPDS import MPDSDataRetrieval
    
    • 1
    E:\Anaconda\lib\site-packages\matminer\data_retrieval\retrieve_MPDS.py:30: UserWarning: No module named 'jmespath'
      warnings.warn(str(ex))
    
    • 1
    • 2

    MDF - The Materials Data Facility

    MDF 数据检索工具 matmin.data _ review。matminer.data_retrieval.retrieve_MDF.MDFDataRetrieval使用 Globus 初始化键进行初始化。在第一次调用 MDFDataRetrieval 对象时,应该会提示您输入一串数字和字母,您可以在 MDF Globus 身份验证网站上输入这些数字和字母。这个系统的一个优点是它实际上根本不需要身份验证。您可以使用 onymous = True,并且可以使用几个 MDF 数据集。但是,其中许多不会,您必须使用 Web 进行身份验证才能访问整个 MDF。

    from matminer.data_retrieval.retrieve_MDF import MDFDataRetrieval
    
    • 1
    mdf_dr = MDFDataRetrieval(anonymous=True)
    
    • 1
    df=mdf_dr.get_dataframe(criteria={'elements':['Ag','Be'],'sources':['oqmd']})
    
    • 1
    df.head()
    
    • 1
    crystal_structure.number_of_atomscrystal_structure.space_group_numbercrystal_structure.volumedft.convergeddft.cutoff_energydft.exchange_correlation_functionalfiles.0.data_typefiles.0.filenamefiles.0.globusfiles.0.length...jarvis.formation_enthalpyjarvis.idjarvis.landing_pagejarvis.total_energyorigin.creatororigin.nameorigin.typejarvis.bandgap.mbjmaterial.elements.2oqmd.magnetic_moment.value
    0222125.2675True520.0PBEASCII text, with very long lines, with no line...537496.jsonglobus://e38ee745-6d04-11e5-ba46-22000b92c6ec/...10833...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
    1222124.0794True520.0PBEASCII text, with very long lines, with no line...86132.jsonglobus://e38ee745-6d04-11e5-ba46-22000b92c6ec/...11014...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
    2422540.8748True520.0PBEASCII text, with very long lines, with no line...113627.jsonglobus://e38ee745-6d04-11e5-ba46-22000b92c6ec/...11526...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
    3622762.5236True520.0PBEASCII text, with very long lines, with no line...19313.jsonglobus://e38ee745-6d04-11e5-ba46-22000b92c6ec/...11320...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
    4413940.6980True520.0PBEASCII text, with very long lines, with no line...71045.jsonglobus://e38ee745-6d04-11e5-ba46-22000b92c6ec/...11283...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN

    5 rows × 48 columns

    
    
    • 1
  • 相关阅读:
    irun和vcs工具,检测TB环境零延时无限循环以及zero-delay组合逻辑
    使用seq2seq架构实现英译法
    OPPO realme 真我 一加 刷机工具下载 ColorOS Upgrade Tool
    3天精通nginx第二天-负载均衡upstream配置
    2022年湖北劳务资质如何办理?劳务资质不分等级
    oracle学习43-oracle导出空表
    什么是调试和性能分析工具?
    PX4仿真添加world模型文件,并使用yolov8进行跟踪
    为什么我的k8s的节点状态都是notready呢
    一个发誓不用Java的程序员,不得不在太空中调试Lisp
  • 原文地址:https://blog.csdn.net/m0_45055763/article/details/125625860