"Empty dataset" message for every single formula that I try to get data from Materials Project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

"Empty dataset" message for every single formula that I try to get data from Materials Project

I need to retrieve data from an element/compound in Material Project's datframe and so far every single formula that I've tried has an empty data set. I don't believe that it's true so I'm assuming there's something that I'm missing in my line of code and I have to know what the issue is. Can somebody please help me? Df = MPdataretrieval (api_key = "my api key").get_dataframe(criteria = {'formula':}, properties = ['band_gap'])

12th Jun 2020, 4:30 PM
Nedy
1 Answer
+ 1
Nedy Have you tried to actually provide some value to 'formula' key of the criteria dictionary?
12th Jun 2020, 9:30 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar