Avatarr05 commited on
Commit
f59b5c9
·
verified ·
1 Parent(s): 94ab475

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -0
README.md CHANGED
@@ -69,13 +69,23 @@ These files follow the same format as the previous set but are pre-split for mac
69
  > To work effectively with this dataset, we recommend using the **Hugging Face `datasets` library** or the **MLCroissant Python library** for programmatic access and exploration.
70
 
71
  ```
 
 
72
  from datasets import load_dataset
73
 
 
74
  # Login using e.g. `huggingface-cli login` to access this dataset
75
  ds = load_dataset("Avatarr05/GreenHyperSpectra", "labeled_all")
76
 
77
  df = ds['train'].to_pandas().drop(['Unnamed: 0'], axis=1)
78
  display(df.head())
 
 
 
 
 
 
 
79
  ```
80
 
81
 
 
69
  > To work effectively with this dataset, we recommend using the **Hugging Face `datasets` library** or the **MLCroissant Python library** for programmatic access and exploration.
70
 
71
  ```
72
+ ### Check the data with **Hugging Face `datasets` library** ###
73
+
74
  from datasets import load_dataset
75
 
76
+ ### labeled_all ###
77
  # Login using e.g. `huggingface-cli login` to access this dataset
78
  ds = load_dataset("Avatarr05/GreenHyperSpectra", "labeled_all")
79
 
80
  df = ds['train'].to_pandas().drop(['Unnamed: 0'], axis=1)
81
  display(df.head())
82
+
83
+ ### labeled_splits: train ###
84
+ train_dataset = load_dataset("Avatarr05/GreenHyperSpectra", 'labeled_splits', split="train")
85
+
86
+ train_dataset = train_dataset.to_pandas().drop(['Unnamed: 0'], axis=1)
87
+ display(df.head())
88
+
89
  ```
90
 
91