Download explore.py from SpecStreamAI/saas-ai-subprocessors-2026: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/datasets/SpecStreamAI/saas-ai-subprocessors-2026/resolve/main/explore.py
- Command line
-
hf download hf://datasets/SpecStreamAI/saas-ai-subprocessors-2026/explore.py
-
curl -L -o explore.py https://huggingface.co/datasets/SpecStreamAI/saas-ai-subprocessors-2026/resolve/main/explore.py
725 Bytes
| #!/usr/bin/env python3 | |
| """Starter exploration script for SaaS AI Subprocessors and Trust Centers 2026 (SpecStream CC BY 4.0 sample).""" | |
| import csv | |
| from pathlib import Path | |
| sample = Path(__file__).parent / "sample.csv" | |
| summary = Path(__file__).parent / "summary_stats.csv" | |
| with sample.open(encoding="utf-8") as f: | |
| rows = list(csv.DictReader(f)) | |
| print(f"Loaded {len(rows):,} sample rows from {sample.name}") | |
| print("Columns:", list(rows[0].keys()) if rows else []) | |
| for r in rows[:5]: | |
| print(" ", dict(list(r.items())[:5])) | |
| with summary.open(encoding="utf-8") as f: | |
| top = list(csv.DictReader(f)) | |
| print(f"\nTop 10 by Vendor across full dataset:") | |
| for r in top[:10]: | |
| print(f" {r['group']}: {int(r['count']):,}") | |