{"success":true,"data":{"author":"Deutsche Bahn (source data); collected by piebro","bucketAccessType":"public","bucketName":"piebro/deutsche-bahn-data","bucketPrefix":"","category":"Machine Learning & AI","cloudProvider":"huggingface","createdAt":"2026-11-14T14:15:20.342Z","description":"Historical train schedules, delays and cancellations for stations across Germany, collected continuously from the Deutsche Bahn Timetables API, the public interface behind departure boards. Monthly processed Parquet files (monthly_processed_data/data-YYYY-MM.parquet, from July 2024 onwards at measurement, about 60 MB per month early on and about 350 MB per month from November 2025) hold one row per train stop with station name and EVA number, train type, train number, line number, final destination, planned and changed arrival and departure times, delay in minutes, arrival and departure cancellation flags and ride identifiers. Separate folders give the planned timetable and change streams, and raw_data/ keeps every API response (XML or JSON) partitioned by year, month and day with request metadata. The repository uses about 134 GB (measured 2026-11-14). Uses include railway punctuality analysis, delay propagation and prediction, network reliability, transport policy evaluation and time series and graph learning on transit networks. Read with pandas, polars or DuckDB; the GitHub project documents the collection. Deutsche Bahn publishes the Timetables API data under CC BY 4.0; attribute Deutsche Bahn AG.","displayTitle":"Deutsche Bahn Train Delay and Cancellation Data","id":"35d20f67-b38a-5947-a08c-fef3d9975152","license":"CC-BY-4.0","licenseEvidenceUrl":"https://developers.deutschebahn.com/db-api-marketplace/apis/product/timetables","objectCountEstimate":2127,"probeStatus":"ok","region":"us","schemaCard":{"accessHints":[{"language":"python-datasets","snippet":"from datasets import load_dataset\nds = load_dataset(\"piebro/deutsche-bahn-data\")"},{"language":"python-hub","snippet":"from huggingface_hub import snapshot_download\nsnapshot_download(repo_id=\"piebro/deutsche-bahn-data\", repo_type=\"dataset\")"}],"caveats":["HuggingFace metadata: author=piebro, license:cc-by-4.0, size_categories:100M<n<1B, format:parquet, downloads=18540"],"format":"mixed","generatedAt":"2026-11-14T14:15:25.406Z","layout":{"example":"monthly_processed_data/data-2024-07.parquet","pattern":"{repoId}/{filename}"},"mountPath":"/mnt/archive","sampleHeaders":[{"bytes":"50415231150415ee1d15da0f4c15d8011500000028b52ffd6077061d1f0096739835506b930ea8cf99d96666e6c3288ebdc9f95b9276f626246d227dea8c51b011153075a3b99a15aefec5a02a9a87feff9224894bd9018a008b0089001a3d85b55680c316390a48027e90a252e2eca56c53d4c902cec721136d2a8638f301b6c5d9b76837d57e3732c436f629111a987ae1f0a9640ddf85b34ef90c721f54094803e5de76b362ad754037aaca5a8bc0a1e54d65b1d64220f163faee4d25596b393cf4ee02dcb7f7389cfdb4eeb2d652b0677d964c1c212a9fb59601097a1ca697ae7791b5168296086853654096b0e32d20181311875d66df7acae39a797138578588c936352e6c2305f9492cbcdd7c1e0e077294329b3cd1accb8a3de4a438fc16b59b9ebe57c1791073f3e13bcef87b373190865f68516f4cd6c473866daacb83f4dab684a046cc47c13e437547e9294a388d863bc53354c9b05be498ddf1c46920414fb78b4028f736397817a102f6017ba6963e53a7e127eda763acb51a34d751fc0c07024ba8ef30dd36aad694bea9c340b272855e4503e32511defd0a88291f2ab6e845f202e2d0a28458eab41b14a7e421c13ec6e1f0612f3f88cff2e28121230ea741de54939ee0894c74685341ce09c2082f2d7a7aa109f91a1a11f316b995b3a26fda097a57e9988d0f595262ad5540b35b147940071347682f49","encoding":"hex","key":"monthly_processed_data/data-2024-07.parquet","truncatedAt":512}],"sampleObjects":["monthly_processed_data/data-2024-07.parquet","monthly_processed_data/data-2024-08.parquet","monthly_processed_data/data-2024-09.parquet","monthly_processed_data/data-2024-10.parquet","monthly_processed_data/data-2024-11.parquet"],"sidecars":[{"bytes":"---\nlicense: cc-by-4.0\ntask_categories:\n- time-series-forecasting\n- tabular-regression\ntags:\n- transportation\n- trains\n- germany\n- deutsche-bahn\n- delays\n- timetables\nsize_categories:\n- 100M<n<1B\npretty_name: Deutsche Bahn Data\n---\n\n# Deutsche Bahn Train Data\n\nThis dataset contains public historical data from Deutsche Bahn, the largest German train company. It includes train schedules, delays, and cancellations from stations across Germany.\n\nFor more info visit the project page at GitHub: https://github.com/piebro/deutsche-bahn-data\n\n## Dataset Structure\n\n### Monthly Processed Data\n\nThe monthly processed data is located in `monthly_processed_data/` and contains files named `data-YYYY-MM.parquet`.\n\n**Schema:**\n\n| Column | Type | Description |\n|--------|------|-------------|\n| `station_name` | string | Name of the station |\n| `xml_station_name` | string | Station name from the XML response |\n| `eva` | string | EVA station number (unique identifier) |\n| `train_number` | string | Train number / Zugnummer, the raw `tl.n` value identifying a specific train run (e.g., \"123\", \"12603\"). Combine with `train_type` for a label like \"ICE 123\" |\n| `line_number` | string | Line number / Liniennummer, the raw `ar.l`/`dp.l` value identifying the route, non-unique (e.g., \"RB23\", \"14\"); null for long-distance trains (ICE/IC/EC) where the API provides no line |\n| `final_destination_station` | string | Final destination of the train |\n| `delay_in_min` | integer | Delay in minutes |\n| `time` | timestamp | Actual arrival or departure time |\n| `arrival_is_canceled` | boolean | Whether the arrival at the train stop was canceled |\n| `departure_is_canceled` | boolean | Whether the departure from the train stop was canceled |\n| `train_type` | string | Type of train (e.g., \"ICE\", \"IC\", \"RE\") |\n| `train_line_ride_id` | string | Unique identifier for the train ride |\n| `train_line_station_num` | integer | Station number in the train's route |\n| `arrival_planned_time` | timestamp | Planned arrival time |\n| `arrival_change_time` | timestamp | Actual/changed arrival time |\n| `departure_planned_time` | timestamp | Planned departure time |\n| `departure_change_time` | timestamp | Actual/changed departure time |\n| `id` | string | Unique identifier for the train stop |\n\n### Raw Data\n\nThe raw data is located in `raw_data/` and is partitioned by `year={year}/month={month}/day={day}/`. Each partition contains multiple parquet files with hourly data.\n\n**Schema:**\n\n| Column | Type | Description |\n|--------|------|-------------|\n| `timestamp` | timestamp | When the API request was made |\n| `url` | string | The API endpoint URL that was queried |\n| `api_name` | string | Name of the API (e.g., \"timetables/v1/plan\", \"timetables/v1/fchg\") |\n| `query_params` | string | JSON string of query parameters used |\n| `response_data` | string | Raw XML or JSON response from the API |\n| `status_code` | string | HTTP status code of the response |\n| `error` | string | Error message if the request failed |\n| `duration_ms` | float | Request duration in milliseconds |\n| `year` | integer | Year of the request (partition key) |\n| `month` | integer | Month of the request (partition key) |\n| `day` | integer | Day of the request (partition key) |\n\n## License\n\nThe dataset is licensed under [Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) by Deutsche Bahn.\n\n## Acknowledgments\n\nData sourced from Deutsche Bahn's public APIs. Special thanks to Deutsche Bahn for providing open access to this data.","encoding":"utf8","key":"README.md","name":"README.md","size":3527,"truncated":false}],"sourceObjectKey":"monthly_processed_data/data-2024-07.parquet","starterCell":"from datasets import load_dataset\nds = load_dataset(\"piebro/deutsche-bahn-data\")\nprint(ds)","starterSamplePath":"monthly_processed_data/data-2024-07.parquet","totalObjects":2127},"summary":"Historical train schedules, delays and cancellations for stations across Germany, collected continuously from the Deutsche Bahn Timetables API, the public interface behind…","title":"Deutsche Bahn Train Delay and Cancellation Data","updatedAt":"2026-11-14T17:48:08.627Z","visibility":"public","websiteUrl":"https://github.com/piebro/deutsche-bahn-data"}}