The dataset viewer is not available for this subset.
Exception: ConnectionError
Message: Couldn't reach 'piebro/deutsche-bahn-data' on the Hub (ReadTimeout)
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 66, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 268, in get_dataset_config_info
builder = load_dataset_builder(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1325, in load_dataset_builder
dataset_module = dataset_module_factory(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1217, in dataset_module_factory
raise e1 from None
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1159, in dataset_module_factory
raise ConnectionError(f"Couldn't reach '{path}' on the Hub ({e.__class__.__name__})") from e
ConnectionError: Couldn't reach 'piebro/deutsche-bahn-data' on the Hub (ReadTimeout)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Deutsche Bahn Train Data
This dataset contains public historical data from Deutsche Bahn, the largest German train company. It includes train schedules, delays, and cancellations from stations across Germany.
For more info visit the project page at GitHub: https://github.com/piebro/deutsche-bahn-data
Dataset Structure
Monthly Processed Data
The monthly processed data is located in monthly_processed_data/ and contains files named data-YYYY-MM.parquet.
Schema:
| Column | Type | Description |
|---|---|---|
station_name |
string | Name of the station |
xml_station_name |
string | Station name from the XML response |
eva |
string | EVA station number (unique identifier) |
train_name |
string | Name of the train (e.g., "ICE 123", "RE 5") |
final_destination_station |
string | Final destination of the train |
delay_in_min |
integer | Delay in minutes |
time |
timestamp | Actual arrival or departure time |
is_canceled |
boolean | Whether the train stop was canceled |
train_type |
string | Type of train (e.g., "ICE", "IC", "RE") |
train_line_ride_id |
string | Unique identifier for the train ride |
train_line_station_num |
integer | Station number in the train's route |
arrival_planned_time |
timestamp | Planned arrival time |
arrival_change_time |
timestamp | Actual/changed arrival time |
departure_planned_time |
timestamp | Planned departure time |
departure_change_time |
timestamp | Actual/changed departure time |
id |
string | Unique identifier for the train stop |
Raw Data
The 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.
Schema:
| Column | Type | Description |
|---|---|---|
timestamp |
timestamp | When the API request was made |
url |
string | The API endpoint URL that was queried |
api_name |
string | Name of the API (e.g., "timetables/v1/plan", "timetables/v1/fchg") |
query_params |
string | JSON string of query parameters used |
response_data |
string | Raw XML or JSON response from the API |
status_code |
string | HTTP status code of the response |
error |
string | Error message if the request failed |
duration_ms |
float | Request duration in milliseconds |
year |
integer | Year of the request (partition key) |
month |
integer | Month of the request (partition key) |
day |
integer | Day of the request (partition key) |
License
The dataset is licensed under Attribution 4.0 International (CC BY 4.0) by Deutsche Bahn.
Acknowledgments
Data sourced from Deutsche Bahn's public APIs. Special thanks to Deutsche Bahn for providing open access to this data.
- Downloads last month
- 3,655