Datasets:
Download examples/load_dataset.py from xiaoxiao720/Frontier-Track: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/datasets/xiaoxiao720/Frontier-Track/resolve/main/examples/load_dataset.py
- Command line
-
hf download hf://datasets/xiaoxiao720/Frontier-Track/examples/load_dataset.py
-
curl -L -o load_dataset.py https://huggingface.co/datasets/xiaoxiao720/Frontier-Track/resolve/main/examples/load_dataset.py
536 Bytes
| #!/usr/bin/env python3 | |
| """Minimal Hugging Face loading example for TWC Frontier-Track OTA v1.""" | |
| from datasets import load_dataset | |
| REPO_ID = "xiaoxiao720/Frontier-Track" | |
| def main() -> None: | |
| tb = load_dataset( | |
| REPO_ID, | |
| data_files={ | |
| "p3": "data/tb_level/p3-*.parquet", | |
| "p4": "data/tb_level/p4-*.parquet", | |
| }, | |
| ) | |
| print("P3 rows:", tb["p3"].num_rows) | |
| print("P4 rows:", tb["p4"].num_rows) | |
| print("Columns:", tb["p3"].column_names) | |
| if __name__ == "__main__": | |
| main() | |