Datasets:
route stringclasses 157
values | event_timestamp timestamp[us]date 2019-01-01 04:55:00 2022-12-31 23:59:59 | boardings int32 0 299 | alightings int32 0 296 | passenger_load int32 0 731 | service_date timestamp[us]date 2019-01-01 00:00:00 2022-12-31 00:00:00 | latitude float64 0 41.3 | longitude float64 -146.52 0 | route_id stringlengths 4 4 | door_lift_flags_possibly stringclasses 7
values | stop_id stringlengths 5 5 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|
73 | 2019-01-14T08:01:00 | 0 | 0 | 17 | 2019-01-14T00:00:00 | 37.75582 | -122.19268 | 0744 | 2 | 52668 |
73 | 2019-01-16T12:11:00 | 0 | 0 | 2 | 2019-01-16T00:00:00 | 37.72802 | -122.20118 | 1151 | 3 | 50117 |
73 | 2019-01-16T12:18:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.72713 | -122.20076 | 1214 | 2 | 55035 |
73 | 2019-01-16T12:19:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73003 | -122.19987 | 1214 | 2 | 54335 |
73 | 2019-01-16T12:19:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73196 | -122.19886 | 1214 | 2 | 52166 |
73 | 2019-01-16T12:20:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73417 | -122.19781 | 1214 | 2 | 59945 |
73 | 2019-01-16T12:23:00 | 0 | 0 | 2 | 2019-01-16T00:00:00 | 37.74521 | -122.19589 | 1214 | 2 | 56782 |
73 | 2019-01-16T12:24:00 | 0 | 0 | 2 | 2019-01-16T00:00:00 | 37.74717 | -122.19591 | 1214 | 2 | 52855 |
73 | 2019-01-16T11:58:00 | 0 | 0 | 8 | 2019-01-16T00:00:00 | 37.75679 | -122.19067 | 1151 | 3 | 59311 |
73 | 2019-01-16T11:59:00 | 0 | 0 | 8 | 2019-01-16T00:00:00 | 37.75597 | -122.19223 | 1151 | 3 | 54421 |
73 | 2019-01-16T12:00:00 | 0 | 0 | 8 | 2019-01-16T00:00:00 | 37.75665 | -122.19388 | 1151 | 3 | 54498 |
73 | 2019-01-16T12:02:00 | 0 | 0 | 8 | 2019-01-16T00:00:00 | 37.75571 | -122.19532 | 1151 | 3 | 59971 |
73 | 2019-01-16T12:05:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.74852 | -122.19643 | 1151 | 3 | 59336 |
73 | 2019-01-16T12:05:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.7475 | -122.19637 | 1151 | 3 | 51443 |
73 | 2019-01-16T12:09:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.73652 | -122.1972 | 1151 | 3 | 58556 |
73 | 2019-01-16T12:09:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.73326 | -122.1985 | 1151 | 3 | 58832 |
73 | 2019-01-16T11:52:00 | 0 | 0 | 9 | 2019-01-16T00:00:00 | 37.76682 | -122.17593 | 1151 | 3 | 56266 |
73 | 2019-01-16T11:53:00 | 0 | 0 | 9 | 2019-01-16T00:00:00 | 37.7663 | -122.17671 | 1151 | 3 | 55527 |
73 | 2019-01-16T11:55:00 | 0 | 0 | 10 | 2019-01-16T00:00:00 | 37.76381 | -122.18023 | 1151 | 3 | 50554 |
73 | 2019-01-16T11:55:00 | 0 | 0 | 10 | 2019-01-16T00:00:00 | 37.76171 | -122.18351 | 1151 | 3 | 50909 |
73 | 2019-01-16T11:55:00 | 0 | 0 | 10 | 2019-01-16T00:00:00 | 37.76331 | -122.18102 | 1151 | 3 | 50995 |
73 | 2019-01-16T11:21:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.73214 | -122.19878 | 1114 | 2 | 52166 |
73 | 2019-01-16T11:23:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.7454 | -122.19596 | 1114 | 2 | 56782 |
73 | 2019-01-16T11:24:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.74721 | -122.19593 | 1114 | 2 | 52855 |
73 | 2019-01-16T11:31:00 | 0 | 0 | 11 | 2019-01-16T00:00:00 | 37.75671 | -122.1938 | 1114 | 2 | 53559 |
73 | 2019-01-16T11:32:00 | 0 | 0 | 11 | 2019-01-16T00:00:00 | 37.75673 | -122.19102 | 1114 | 2 | 53636 |
73 | 2019-01-16T11:32:00 | 0 | 0 | 11 | 2019-01-16T00:00:00 | 37.75583 | -122.19267 | 1114 | 2 | 52668 |
73 | 2019-01-16T11:34:00 | 0 | 0 | 6 | 2019-01-16T00:00:00 | 37.76067 | -122.18481 | 1114 | 2 | 54145 |
73 | 2019-01-16T11:11:00 | 0 | 0 | 2 | 2019-01-16T00:00:00 | 37.72801 | -122.20119 | 1051 | 3 | 50117 |
73 | 2019-01-16T11:19:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.72729 | -122.20107 | 1114 | 2 | 55035 |
73 | 2019-01-16T11:20:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.72992 | -122.19992 | 1114 | 2 | 54335 |
73 | 2019-01-16T11:21:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.73378 | -122.19799 | 1114 | 2 | 59945 |
73 | 2019-01-16T11:21:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.73621 | -122.1969 | 1114 | 2 | 59333 |
73 | 2019-01-16T10:55:00 | 0 | 0 | 14 | 2019-01-16T00:00:00 | 37.7648 | -122.17874 | 1051 | 3 | 55356 |
73 | 2019-01-16T10:56:00 | 0 | 0 | 15 | 2019-01-16T00:00:00 | 37.76149 | -122.18385 | 1051 | 3 | 50909 |
73 | 2019-01-16T10:56:00 | 0 | 0 | 15 | 2019-01-16T00:00:00 | 37.763 | -122.1815 | 1051 | 3 | 50995 |
73 | 2019-01-16T11:00:00 | 0 | 0 | 9 | 2019-01-16T00:00:00 | 37.75669 | -122.19353 | 1051 | 3 | 54498 |
73 | 2019-01-16T11:00:00 | 0 | 0 | 9 | 2019-01-16T00:00:00 | 37.75578 | -122.19256 | 1051 | 3 | 54421 |
73 | 2019-01-16T11:01:00 | 0 | 0 | 9 | 2019-01-16T00:00:00 | 37.75595 | -122.19497 | 1051 | 3 | 59971 |
73 | 2019-01-16T10:32:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75668 | -122.19061 | 1014 | 2 | 53636 |
73 | 2019-01-16T10:33:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75945 | -122.18642 | 1014 | 2 | 56999 |
73 | 2019-01-16T10:34:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.76358 | -122.18026 | 1014 | 2 | 57573 |
73 | 2019-01-16T10:34:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.7619 | -122.1829 | 1014 | 2 | 50855 |
73 | 2019-01-16T10:34:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.76089 | -122.18446 | 1014 | 2 | 54145 |
73 | 2019-01-16T10:35:00 | 0 | 0 | 4 | 2019-01-16T00:00:00 | 37.76663 | -122.17583 | 1014 | 2 | 56453 |
73 | 2019-01-16T10:53:00 | 0 | 0 | 10 | 2019-01-16T00:00:00 | 37.76708 | -122.17558 | 1051 | 3 | 56266 |
73 | 2019-01-16T10:22:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73003 | -122.19984 | 1014 | 2 | 54335 |
73 | 2019-01-16T10:22:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73401 | -122.19787 | 1014 | 2 | 59945 |
73 | 2019-01-16T10:22:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73633 | -122.19711 | 1014 | 2 | 59333 |
73 | 2019-01-16T10:22:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73186 | -122.19892 | 1014 | 2 | 52166 |
73 | 2019-01-16T10:25:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.74714 | -122.19594 | 1014 | 2 | 52855 |
73 | 2019-01-16T10:29:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75573 | -122.19527 | 1014 | 2 | 55856 |
73 | 2019-01-16T10:29:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75515 | -122.19675 | 1014 | 2 | 57155 |
73 | 2019-01-16T10:30:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75651 | -122.19408 | 1014 | 2 | 53559 |
73 | 2019-01-16T10:31:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75615 | -122.19228 | 1014 | 2 | 52668 |
73 | 2019-01-16T10:06:00 | 0 | 0 | 12 | 2019-01-16T00:00:00 | 37.74762 | -122.19637 | 0951 | 3 | 51443 |
73 | 2019-01-16T10:11:00 | 0 | 0 | 4 | 2019-01-16T00:00:00 | 37.73326 | -122.1985 | 0951 | 3 | 58832 |
73 | 2019-01-16T10:13:00 | 0 | 0 | 3 | 2019-01-16T00:00:00 | 37.72803 | -122.20123 | 0951 | 3 | 50117 |
73 | 2019-01-16T10:21:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.72763 | -122.2012 | 1014 | 2 | 55035 |
73 | 2019-01-16T09:52:00 | 0 | 0 | 8 | 2019-01-16T00:00:00 | 37.76714 | -122.17548 | 0951 | 3 | 56266 |
73 | 2019-01-16T09:54:00 | 0 | 0 | 11 | 2019-01-16T00:00:00 | 37.76503 | -122.17835 | 0951 | 3 | 55356 |
73 | 2019-01-16T10:00:00 | 0 | 0 | 15 | 2019-01-16T00:00:00 | 37.75592 | -122.19277 | 0951 | 3 | 54421 |
73 | 2019-01-16T10:02:00 | 0 | 0 | 13 | 2019-01-16T00:00:00 | 37.7559 | -122.19505 | 0951 | 3 | 59971 |
73 | 2019-01-16T09:29:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75457 | -122.19726 | 0914 | 2 | 57155 |
73 | 2019-01-16T09:30:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75674 | -122.19369 | 0914 | 2 | 53559 |
73 | 2019-01-16T09:31:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75659 | -122.19125 | 0914 | 2 | 53636 |
73 | 2019-01-16T09:31:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.75586 | -122.19272 | 0914 | 2 | 52668 |
73 | 2019-01-16T09:36:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.76372 | -122.18005 | 0914 | 2 | 57573 |
73 | 2019-01-16T09:36:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.76223 | -122.18237 | 0914 | 2 | 50855 |
73 | 2019-01-16T09:38:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.7667 | -122.17567 | 0914 | 2 | 56453 |
73 | 2019-01-16T09:18:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.72722 | -122.20093 | 0914 | 2 | 55035 |
73 | 2019-01-16T09:19:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73022 | -122.19977 | 0914 | 2 | 54335 |
73 | 2019-01-16T09:19:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.7317 | -122.19902 | 0914 | 2 | 52166 |
73 | 2019-01-16T09:20:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.73388 | -122.19793 | 0914 | 2 | 59945 |
73 | 2019-01-16T09:24:00 | 0 | 0 | 4 | 2019-01-16T00:00:00 | 37.74712 | -122.19591 | 0914 | 2 | 52855 |
73 | 2019-01-16T09:00:00 | 0 | 0 | 11 | 2019-01-16T00:00:00 | 37.75677 | -122.19065 | 0851 | 3 | 59311 |
73 | 2019-01-16T09:00:00 | 0 | 0 | 11 | 2019-01-16T00:00:00 | 37.756 | -122.1922 | 0851 | 3 | 54421 |
73 | 2019-01-16T09:01:00 | 0 | 0 | 11 | 2019-01-16T00:00:00 | 37.75662 | -122.19346 | 0851 | 3 | 54498 |
73 | 2019-01-16T09:05:00 | 0 | 0 | 4 | 2019-01-16T00:00:00 | 37.74845 | -122.19644 | 0851 | 3 | 59336 |
73 | 2019-01-16T09:05:00 | 0 | 0 | 4 | 2019-01-16T00:00:00 | 37.74765 | -122.19639 | 0851 | 3 | 51443 |
73 | 2019-01-16T09:05:00 | 0 | 0 | 4 | 2019-01-16T00:00:00 | 37.74606 | -122.19629 | 0851 | 3 | 53899 |
73 | 2019-01-16T09:09:00 | 0 | 0 | 2 | 2019-01-16T00:00:00 | 37.73322 | -122.19854 | 0851 | 3 | 58832 |
73 | 2019-01-16T09:10:00 | 0 | 0 | 0 | 2019-01-16T00:00:00 | 37.72802 | -122.20119 | 0851 | 3 | 50117 |
73 | 2019-01-16T08:43:00 | 0 | 0 | 6 | 2019-01-16T00:00:00 | 37.76529 | -122.17753 | 0814 | 2 | 55438 |
73 | 2019-01-16T08:44:00 | 0 | 0 | 6 | 2019-01-16T00:00:00 | 37.76689 | -122.17546 | 0814 | 2 | 56453 |
73 | 2019-01-16T08:52:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.76706 | -122.17559 | 0851 | 3 | 56266 |
73 | 2019-01-16T08:55:00 | 0 | 0 | 12 | 2019-01-16T00:00:00 | 37.76402 | -122.17995 | 0851 | 3 | 50554 |
73 | 2019-01-16T08:55:00 | 0 | 0 | 12 | 2019-01-16T00:00:00 | 37.76502 | -122.17838 | 0851 | 3 | 55356 |
73 | 2019-01-16T08:57:00 | 0 | 0 | 13 | 2019-01-16T00:00:00 | 37.76151 | -122.18384 | 0851 | 3 | 50909 |
73 | 2019-01-16T08:32:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.74539 | -122.19591 | 0814 | 2 | 56782 |
73 | 2019-01-16T08:33:00 | 0 | 0 | 5 | 2019-01-16T00:00:00 | 37.74705 | -122.19592 | 0814 | 2 | 52855 |
73 | 2019-01-16T08:37:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.75468 | -122.19691 | 0814 | 2 | 57155 |
73 | 2019-01-16T08:38:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.75569 | -122.19534 | 0814 | 2 | 55856 |
73 | 2019-01-16T08:38:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.75663 | -122.19347 | 0814 | 2 | 53559 |
73 | 2019-01-16T08:39:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.75672 | -122.19065 | 0814 | 2 | 53636 |
73 | 2019-01-16T08:39:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.75587 | -122.19235 | 0814 | 2 | 52668 |
73 | 2019-01-16T08:41:00 | 0 | 0 | 7 | 2019-01-16T00:00:00 | 37.76044 | -122.18509 | 0814 | 2 | 54145 |
73 | 2019-01-16T08:42:00 | 0 | 0 | 6 | 2019-01-16T00:00:00 | 37.76364 | -122.18018 | 0814 | 2 | 57573 |
73 | 2019-01-16T08:16:00 | 0 | 0 | 4 | 2019-01-16T00:00:00 | 37.7331 | -122.19859 | 0750 | 3 | 58832 |
73 | 2019-01-16T08:17:00 | 0 | 0 | 1 | 2019-01-16T00:00:00 | 37.72801 | -122.20116 | 0750 | 3 | 50117 |
AC Transit Automatic Passenger Counter Records, 2019-2026
Stop-level boarding and alighting counts for the AC Transit bus network in Alameda and Contra Costa counties, California, from January 2019 through May 2026. The records come from the automatic passenger counters (APCs) mounted at the doors of the buses: one row per stop event, with the number of passengers who got on, the number who got off, and the load the bus left with.
89 monthly Parquet files, ~5.9 GB, partitioned year=/month=. The span covers
the pre-pandemic baseline, the March 2020 collapse, and the uneven recovery
that followed, which is the comparison the data was assembled to support.
Loading
import pandas as pd
df = pd.read_parquet(
"hf://datasets/somemone/ac-transit-apc/year=2019/month=2/data_0.parquet"
)
Or the whole thing as a partitioned dataset:
import pyarrow.dataset as ds
from huggingface_hub import snapshot_download
path = snapshot_download("somemone/ac-transit-apc", repo_type="dataset")
table = ds.dataset(path, format="parquet", partitioning="hive")
Schema
| column | type | notes |
|---|---|---|
route |
string | route as reported by the vehicle |
route_id |
string | GTFS route identifier |
stop_id |
string | GTFS stop identifier |
event_timestamp |
timestamp[us] | when the doors opened |
service_date |
timestamp[us] | service day the event belongs to |
boardings |
int32 | passengers on |
alightings |
int32 | passengers off |
passenger_load |
int32 | load leaving the stop |
latitude |
double | stop position |
longitude |
double | stop position |
door_lift_flags_possibly |
string | vehicle flag field; its low bit separates the two APC-equipped subfleets |
Readers that understand Hive partitioning also surface year and month as
columns, recovered from the directory names rather than stored in the files.
Working with it
These are raw counts, not ridership estimates. Two corrections matter before the numbers mean what you want them to:
- Partial fleet coverage. Not every bus carries a working APC, and the
equipped share varies by route and by month. Summing raw boardings
undercounts actual ridership, unevenly. Scale by the observed capture rate
per (route, subfleet) before comparing across routes or over time. The low
bit of
door_lift_flags_possiblyseparates the two subfleets, which have materially different capture rates. - Drift against reported totals. Even after capture correction, monthly sums do not match the agency's National Transit Database filings. A per-month calibration factor closes the gap.
passenger_load is the counter's running estimate and accumulates error along
a trip; it is more useful for relative load profiles than as an absolute.
A small number of coordinates are wrong. In a representative month, ~0.1% of
rows across ~15 stop IDs fall outside the service area, and the extremes land
hundreds of kilometres away. Most apparent outliers are legitimate -- the
network reaches Fremont, and the Dumbarton corridor crosses to Palo Alto --
but do not derive a bounding box from min/max without filtering first.
Privacy
The records contain no operator, vehicle, or fare-media identifiers, and no rider-level information of any kind. A row is a count at a stop at a time. Coordinates are bus stop positions.
Provenance and license
The underlying records originate with the Alameda-Contra Costa Transit District (AC Transit). Released here under CC BY 4.0. This dataset is not affiliated with or endorsed by AC Transit.
Related
Built for the AC Transit Ridership Explorer, an interactive map of weekly stop-level ridership and pandemic recovery (live). That repository carries the capture-correction and calibration pipeline these records feed.
- Downloads last month
- 100