williamjameshandley commited on
Commit
3569229
·
verified ·
1 Parent(s): d1284b4

Read Parquet document from file metadata

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -81,7 +81,7 @@ import json
81
  from huggingface_hub import hf_hub_download
82
  import pyarrow.parquet as pq
83
  path = hf_hub_download("astro-legacy-archive/msam-released-products", "jun95__var_2_cmbr.parquet", repo_type="dataset")
84
- print(json.loads(pq.read_schema(path).metadata[b"dense_matrix"])["array"]["shape"])
85
  ```
86
 
87
  ```text
@@ -112,7 +112,7 @@ member SHA-256, and description are in the JSON document at Parquet schema
112
  metadata key `dense_matrix`. For every observation and beam-map configuration,
113
  the corresponding details and every field's description, unit, role, and source
114
  position are in `statistical_product`; read
115
- `json.loads(pq.read_schema(path).metadata[b"statistical_product"])["fields"]`.
116
  This is the canonical machine-readable route for all 38 configurations.
117
 
118
  ## Provenance
 
81
  from huggingface_hub import hf_hub_download
82
  import pyarrow.parquet as pq
83
  path = hf_hub_download("astro-legacy-archive/msam-released-products", "jun95__var_2_cmbr.parquet", repo_type="dataset")
84
+ print(json.loads(pq.read_metadata(path).metadata[b"dense_matrix"])["array"]["shape"])
85
  ```
86
 
87
  ```text
 
112
  metadata key `dense_matrix`. For every observation and beam-map configuration,
113
  the corresponding details and every field's description, unit, role, and source
114
  position are in `statistical_product`; read
115
+ `json.loads(pq.read_metadata(path).metadata[b"statistical_product"])["fields"]`.
116
  This is the canonical machine-readable route for all 38 configurations.
117
 
118
  ## Provenance