Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -46,9 +46,9 @@ To combine the metadata with the galaxy images you can do (for example):
|
|
46 |
from datasets import load_dataset, concatenate_datasets
|
47 |
|
48 |
# Load the `galaxies' dataset with metadata
|
49 |
-
metadata = load_dataset("Smith42/galaxies_metadata", streaming=True)
|
50 |
galaxies = load_dataset("Smith42/galaxies", streaming=True)
|
51 |
-
|
|
|
52 |
```
|
53 |
The metadata is also available in parquet format in the root dir of this repo.
|
54 |
You can link the metadata with the galaxies via their dr8_id.
|
|
|
46 |
from datasets import load_dataset, concatenate_datasets
|
47 |
|
48 |
# Load the `galaxies' dataset with metadata
|
|
|
49 |
galaxies = load_dataset("Smith42/galaxies", streaming=True)
|
50 |
+
metadata = load_dataset("Smith42/galaxies_metadata", streaming=True).remove_columns("dr8_id")
|
51 |
+
combined = concatenate_datasets([galaxies['train'], metadata['train']], axis=1)
|
52 |
```
|
53 |
The metadata is also available in parquet format in the root dir of this repo.
|
54 |
You can link the metadata with the galaxies via their dr8_id.
|