I'm currently dealing with a material science dataset having various information.
In particular, I have a column 'Structure' with several pymatgen.core.Structure
objects.
I would like to save/store this dataset as .csv
file or something similar but the problem is that after having done that and reopening, the pymatgen structures lose their type
becoming just formatted strings and I cannot get back to their initial pymatgen.core.Structure
data type.
Any hints on how to that? I'm searching on pymatgen
documentation but haven't been lucky for now..
Thanks in advance!
From the docs:
See also https://pymatgen.org/usage.html#montyencoder-decoder and https://pymatgen.org/usage.html#reading-and-writing-structures-molecules