msiron commited on
Commit
6f4e929
·
1 Parent(s): a0bb336

load only needed columns

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -12,7 +12,21 @@ from pymatgen.entries.computed_entries import (ComputedStructureEntry,
12
  HF_TOKEN = os.environ.get("HF_TOKEN")
13
 
14
  # Load only the train split of the dataset
15
- dataset = load_dataset("LeMaterial/leDataset", token=HF_TOKEN, split="train")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  # Convert the train split to a pandas DataFrame
18
  train_df = dataset.to_pandas()
 
12
  HF_TOKEN = os.environ.get("HF_TOKEN")
13
 
14
  # Load only the train split of the dataset
15
+ dataset = load_dataset(
16
+ "LeMaterial/leDataset",
17
+ token=HF_TOKEN,
18
+ split="train",
19
+ columns=[
20
+ "lattice_vectors",
21
+ "species_at_sites",
22
+ "cartesian_site_positions",
23
+ "energy",
24
+ "energy_corrected",
25
+ "immutable_id",
26
+ "elements",
27
+ "functional",
28
+ ],
29
+ )
30
 
31
  # Convert the train split to a pandas DataFrame
32
  train_df = dataset.to_pandas()