Dataset Viewer
Auto-converted to Parquet Duplicate
train_id
stringdate
3165-01-01 00:00:00
9229-01-01 00:00:00
train_number
stringdate
3165-01-01 00:00:00
9229-01-01 00:00:00
track
stringclasses
16 values
observation_time
timestamp[ns]date
2023-04-15 16:05:01
2025-09-30 20:45:01
departure_time
timestamp[ns]date
2023-04-15 16:07:00
2025-09-30 20:48:00
destination
stringclasses
48 values
line
stringclasses
7 values
line_abbreviation
stringclasses
6 values
7257
7257
10
2023-04-15T16:05:01
2023-04-15T16:07:00
Long Branch -SEC &#9992
No Jersey Coast
NJCL
6931
6931
2
2023-04-15T16:10:01
2023-04-15T16:11:00
Dover -SEC
Morristown Line
M&E
7857
7857
4
2023-04-15T16:10:01
2023-04-15T16:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7859
7859
13
2023-04-15T16:50:01
2023-04-15T16:54:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7661
7661
1
2023-04-15T17:00:01
2023-04-15T17:01:00
Rahway &#9992
No Jersey Coast
NJCL
7261
7261
4
2023-04-15T17:05:01
2023-04-15T17:07:00
Long Branch-BH -SEC &#9992
No Jersey Coast
NJCL
6933
6933
9
2023-04-15T17:10:01
2023-04-15T17:11:00
Dover -SEC
Morristown Line
M&E
7861
7861
3
2023-04-15T17:10:01
2023-04-15T17:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7863
7863
10
2023-04-15T17:55:01
2023-04-15T17:58:00
Trenton &#9992
Northeast Corrdr
NEC
7665
7665
13
2023-04-15T18:00:01
2023-04-15T18:01:00
Rahway -SEC &#9992
No Jersey Coast
NJCL
7265
7265
2
2023-04-15T18:05:01
2023-04-15T18:07:00
Long Branch-BH -SEC &#9992
No Jersey Coast
NJCL
6935
6935
4
2023-04-15T18:10:01
2023-04-15T18:11:00
Dover -SEC
Morristown Line
M&E
7865
7865
1
2023-04-15T18:10:01
2023-04-15T18:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7867
7867
3
2023-04-15T19:00:01
2023-04-15T19:03:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7269
7269
1
2023-04-15T19:05:01
2023-04-15T19:07:00
Long Branch -SEC &#9992
No Jersey Coast
NJCL
6937
6937
14
2023-04-15T19:10:01
2023-04-15T19:11:00
Dover -SEC
Morristown Line
M&E
7869
7869
10
2023-04-15T19:10:01
2023-04-15T19:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7673
7673
2
2023-04-15T19:50:01
2023-04-15T19:51:00
Rahway -SEC &#9992
No Jersey Coast
NJCL
7871
7871
1
2023-04-15T20:00:01
2023-04-15T20:03:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7273
7273
3
2023-04-15T20:05:01
2023-04-15T20:07:00
Long Branch-BH -SEC &#9992
No Jersey Coast
NJCL
6939
6939
4
2023-04-15T20:10:01
2023-04-15T20:11:00
Dover -SEC
Morristown Line
M&E
7873
7873
10
2023-04-15T20:10:01
2023-04-15T20:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7875
7875
3
2023-04-15T20:55:01
2023-04-15T20:55:00
Trenton &#9992
Northeast Corrdr
NEC
7257
7257
10
2023-04-16T16:05:01
2023-04-16T16:07:00
Long Branch -SEC &#9992
No Jersey Coast
NJCL
6931
6931
2
2023-04-16T16:10:01
2023-04-16T16:11:00
Dover -SEC
Morristown Line
M&E
7857
7857
4
2023-04-16T16:10:01
2023-04-16T16:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7859
7859
10
2023-04-16T16:50:01
2023-04-16T16:54:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7661
7661
1
2023-04-16T17:00:01
2023-04-16T17:01:00
Rahway &#9992
No Jersey Coast
NJCL
7261
7261
3
2023-04-16T17:05:01
2023-04-16T17:07:00
Long Branch-BH -SEC &#9992
No Jersey Coast
NJCL
6933
6933
4
2023-04-16T17:10:01
2023-04-16T17:11:00
Dover -SEC
Morristown Line
M&E
7861
7861
9
2023-04-16T17:10:01
2023-04-16T17:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7863
7863
2
2023-04-16T17:55:01
2023-04-16T17:58:00
Trenton &#9992
Northeast Corrdr
NEC
7665
7665
14
2023-04-16T18:00:01
2023-04-16T18:01:00
Rahway -SEC &#9992
No Jersey Coast
NJCL
7265
7265
4
2023-04-16T18:05:01
2023-04-16T18:07:00
Long Branch-BH -SEC &#9992
No Jersey Coast
NJCL
6935
6935
3
2023-04-16T18:10:01
2023-04-16T18:11:00
Dover -SEC
Morristown Line
M&E
7865
7865
1
2023-04-16T18:10:01
2023-04-16T18:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7867
7867
10
2023-04-16T19:00:01
2023-04-16T19:03:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7269
7269
1
2023-04-16T19:05:01
2023-04-16T19:07:00
Long Branch -SEC &#9992
No Jersey Coast
NJCL
6937
6937
3
2023-04-16T19:10:01
2023-04-16T19:11:00
Dover -SEC
Morristown Line
M&E
7869
7869
2
2023-04-16T19:10:01
2023-04-16T19:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7673
7673
12
2023-04-16T19:50:01
2023-04-16T19:51:00
Rahway -SEC &#9992
No Jersey Coast
NJCL
7871
7871
1
2023-04-16T20:00:01
2023-04-16T20:03:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7273
7273
4
2023-04-16T20:05:01
2023-04-16T20:07:00
Long Branch-BH -SEC &#9992
No Jersey Coast
NJCL
6939
6939
3
2023-04-16T20:10:01
2023-04-16T20:11:00
Dover -SEC
Morristown Line
M&E
7873
7873
2
2023-04-16T20:10:01
2023-04-16T20:14:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
7875
7875
13
2023-04-16T20:55:01
2023-04-16T20:55:00
Trenton &#9992
Northeast Corrdr
NEC
3721
3721
15
2023-04-17T16:00:01
2023-04-17T16:01:00
Jersey Avenue -SEC &#9992
Northeast Corrdr
NEC
6341
6341
3
2023-04-17T16:05:01
2023-04-17T16:07:00
Summit
Morristown Line
M&E
3595
3595
1
2023-04-17T16:05:01
2023-04-17T16:09:00
South Amboy -SEC &#9992
No Jersey Coast
NJCL
3943
3943
9
2023-04-17T16:10:01
2023-04-17T16:13:00
Trenton -SEC
Northeast Corrdr
NEC
6641
6641
2
2023-04-17T16:15:01
2023-04-17T16:15:00
Dover
Morristown Line
M&E
3723
3723
11
2023-04-17T16:25:01
2023-04-17T16:27:00
Jersey Avenue -SEC
Northeast Corrdr
NEC
3361
3361
12
2023-04-17T16:30:01
2023-04-17T16:30:00
Bay Head -SEC
No Jersey Coast
NJCL
3861
3861
13
2023-04-17T16:30:01
2023-04-17T16:33:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
3947
3947
4
2023-04-17T16:40:01
2023-04-17T16:41:00
Trenton -SEC
Northeast Corrdr
NEC
6343
6343
3
2023-04-17T16:40:01
2023-04-17T16:43:00
Summit
Morristown Line
M&E
6643
6643
1
2023-04-17T16:45:01
2023-04-17T16:45:00
Dover -SEC
Morristown Line
M&E
3165
3165
9
2023-04-17T16:50:01
2023-04-17T16:50:00
Jersey Avenue -SEC &#9992
Northeast Corrdr
NEC
6263
6263
2
2023-04-17T16:50:01
2023-04-17T16:52:00
MSU
Montclair-Boonton
MOBO
3363
3363
14
2023-04-17T17:00:01
2023-04-17T17:01:00
Bay Head -SEC
No Jersey Coast
NJCL
3949
3949
8
2023-04-17T17:00:01
2023-04-17T17:03:00
Trenton
Northeast Corrdr
NEC
3511
3511
7
2023-04-17T17:05:01
2023-04-17T17:05:00
South Amboy -SEC
No Jersey Coast
NJCL
3725
3725
13
2023-04-17T17:10:01
2023-04-17T17:12:00
Jersey Avenue -SEC
Northeast Corrdr
NEC
6647
6647
3
2023-04-17T17:10:01
2023-04-17T17:14:00
Dover
Morristown Line
M&E
3951
3951
8
2023-04-17T17:15:01
2023-04-17T17:16:00
Trenton -SEC
Northeast Corrdr
NEC
6431
6431
4
2023-04-17T17:15:01
2023-04-17T17:18:00
Gladstone
Gladstone Branch
M&E
3265
3265
10
2023-04-17T17:20:01
2023-04-17T17:20:00
Long Branch -SEC &#9992
No Jersey Coast
NJCL
3867
3867
12
2023-04-17T17:25:01
2023-04-17T17:25:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
3513
3513
1
2023-04-17T17:25:01
2023-04-17T17:29:00
South Amboy -SEC &#9992
No Jersey Coast
NJCL
6273
6273
7
2023-04-17T17:30:01
2023-04-17T17:31:00
MSU
Montclair-Boonton
MOBO
6651
6651
8
2023-04-17T17:30:01
2023-04-17T17:34:00
Dover -SEC
Morristown Line
M&E
3267
3267
2
2023-04-17T17:35:01
2023-04-17T17:36:00
Long Branch
No Jersey Coast
NJCL
3727
3727
11
2023-04-17T17:35:01
2023-04-17T17:39:00
Jersey Avenue -SEC
Northeast Corrdr
NEC
3953
3953
3
2023-04-17T17:40:01
2023-04-17T17:43:00
Trenton -SEC
Northeast Corrdr
NEC
3871
3871
12
2023-04-17T17:50:01
2023-04-17T17:50:00
Trenton -SEC
Northeast Corrdr
NEC
6653
6653
4
2023-04-17T17:50:01
2023-04-17T17:52:00
Dover
Morristown Line
M&E
3271
3271
10
2023-04-17T17:55:01
2023-04-17T17:55:00
Long Branch -SEC &#9992
No Jersey Coast
NJCL
3957
3957
1
2023-04-17T18:00:01
2023-04-17T18:01:00
Trenton
Northeast Corrdr
NEC
3373
3373
13
2023-04-17T18:00:01
2023-04-17T18:04:00
Bay Head -SEC
No Jersey Coast
NJCL
6437
6437
2
2023-04-17T18:05:01
2023-04-17T18:08:00
Gladstone
Gladstone Branch
M&E
6279
6279
8
2023-04-17T18:10:01
2023-04-17T18:10:00
MSU
Montclair-Boonton
MOBO
3959
3959
12
2023-04-17T18:10:01
2023-04-17T18:12:00
Trenton -SEC
Northeast Corrdr
NEC
3873
3873
10
2023-04-17T18:10:01
2023-04-17T18:14:00
Trenton &#9992
Northeast Corrdr
NEC
3515
3515
4
2023-04-17T18:15:01
2023-04-17T18:16:00
South Amboy -SEC &#9992
No Jersey Coast
NJCL
6355
6355
3
2023-04-17T18:15:01
2023-04-17T18:18:00
Summit
Morristown Line
M&E
6655
6655
7
2023-04-17T18:20:01
2023-04-17T18:20:00
Dover -SEC
Morristown Line
M&E
3275
3275
1
2023-04-17T18:25:01
2023-04-17T18:29:00
Long Branch-BH -SEC
No Jersey Coast
NJCL
3175
3175
11
2023-04-17T18:35:01
2023-04-17T18:37:00
Jersey Avenue -SEC &#9992
Northeast Corrdr
NEC
3961
3961
10
2023-04-17T18:35:01
2023-04-17T18:39:00
Trenton
Northeast Corrdr
NEC
6283
6283
3
2023-04-17T18:40:01
2023-04-17T18:41:00
MSU -SEC
Montclair-Boonton
MOBO
3875
3875
2
2023-04-17T18:45:01
2023-04-17T18:47:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
6359
6359
4
2023-04-17T18:50:01
2023-04-17T18:50:00
Summit -SEC
Morristown Line
M&E
6659
6659
1
2023-04-17T18:55:01
2023-04-17T18:56:00
Dover
Morristown Line
M&E
3279
3279
9
2023-04-17T19:05:02
2023-04-17T19:05:00
Long Branch-BH -SEC &#9992
No Jersey Coast
NJCL
3963
3963
3
2023-04-17T19:10:01
2023-04-17T19:12:00
Trenton -SEC &#9992
Northeast Corrdr
NEC
6363
6363
2
2023-04-17T19:15:01
2023-04-17T19:18:00
Summit
Morristown Line
M&E
3733
3733
12
2023-04-17T19:20:01
2023-04-17T19:20:00
Jersey Avenue -SEC
Northeast Corrdr
NEC
3281
3281
13
2023-04-17T19:20:01
2023-04-17T19:24:00
Long Branch &#9992
No Jersey Coast
NJCL
6663
6663
1
2023-04-17T19:25:01
2023-04-17T19:26:00
Dover
Morristown Line
M&E
6291
6291
10
2023-04-17T19:35:01
2023-04-17T19:37:00
MSU -SEC
Montclair-Boonton
MOBO
End of preview. Expand in Data Studio

NJ Transit NY Penn Station Track Assignments

A dataset of train track assignments at New York Penn Station for NJ Transit trains, with historical data starting from April 2023.

Dataset Summary

This dataset contains historical track assignment data for NJ Transit trains departing from New York Penn Station collected during peak evening commute hours. It's designed for machine learning tasks such as predicting which track a train will depart from based on temporal and route features.

This data is critical for solving the "Penn Station Mad Dash", the stressful scramble that occurs when a track is announced only minutes before departure. By analyzing historical patterns in this dataset, developers and data scientists can build models to predict track assignments before they are officially posted, helping commuters position themselves on the correct level and platform ahead of time.

Use Cases:

  • Train track prediction models
  • Transit pattern analysis
  • Time-series forecasting
  • Commuter planning tools

Coverage:

  • Time Period: April 2023 onwards (optimistically, updated quarterly)
  • Records per Quarter: ~4,000-4,500 daily train departures

Dataset Structure

Data Files

The dataset is organized into quarterly Parquet files for efficient loading and incremental updates:

ny_penn_tracks_2023_q2.parquet  (Apr-Jun 2023)
ny_penn_tracks_2023_q3.parquet  (Jul-Sep 2023)
ny_penn_tracks_2023_q4.parquet  (Oct-Dec 2023)
ny_penn_tracks_2024_q1.parquet  (Jan-Mar 2024)
...

Each file contains one record per train per day, representing the final track assignment observed before departure.

Schema

Column Type Description
train_id string Unique identifier for the train service (e.g., "6742")
train_number string Train number (typically same as train_id)
track string Target variable - Platform track number (e.g., "1", "14")
observation_time timestamp When this track assignment was observed by njtracks.app
departure_time timestamp Scheduled departure time of the train
destination string Final destination station as reported by NJTransit APIs (e.g., "Trenton &#9992", "Dover -SEC")
line string Transit line name (e.g., "Northeast Corridor")
line_abbreviation string Line code (e.g., "NEC", "M&E", "NJCL")

Data Filters

This dataset includes only:

  • ✅ NJ Transit trains (Amtrak excluded)
  • ✅ Trains with assigned tracks (null/empty tracks excluded)
  • ✅ NY Penn Station departures only

Usage

Loading the Dataset

from datasets import load_dataset

# Load entire dataset
dataset = load_dataset("njtracks/penn-station-departures")

# Load specific quarters
dataset = load_dataset("njtracks/penn-station-departures",
                       data_files=["ny_penn_tracks_2024_q*.parquet"])

Or with Pandas:

import pandas as pd

df = pd.read_parquet("hf://datasets/njtracks/penn-station-departures/ny_penn_tracks_2024_q1.parquet")

Quick Start Example

import pandas as pd
from datasets import load_dataset

# Load data
dataset = load_dataset("njtracks/penn-station-departures")
df = dataset['train'].to_pandas()

# Add temporal features
df['hour'] = df['departure_time'].dt.hour
df['day_of_week'] = df['departure_time'].dt.dayofweek

# Analyze track patterns
print(df.groupby(['line_abbreviation', 'track']).size())

Data Collection

Methodology

Data is collected from NJ Transit APIs, which provides real-time departure information similar to what's displayed on station monitors. The collection process:

  1. Observation Frequency: API polled regularly during peak evening commute periods.
  2. Track Resolution: For each train departure, the dataset includes the last observed track assignment before departure
  3. Deduplication: One record per train per day (identified by date + train_id)

Data Integrity:

  • All timestamps are in Eastern Time (ET)
  • Missing or malformed records are excluded
  • Track assignments represent actual observed values, not predictions. We make no guarantees about whether trains actually used these platforms or not.

Disclaimer

This is not official NJ Transit data. This dataset was obtained from NJ Transit's public APIs.

  • This data is provided "as is" without any warranties regarding accuracy, completeness, or timeliness
  • NJ Transit does not endorse or support this dataset
  • The information may contain errors, gaps, or outdated information
  • For official schedules and real-time information, visit NJTransit.com

Updates

This dataset will, optimistically, receive quarterly updates as new data becomes available.

Metadata

The manifest.json file contains detailed metadata for each quarter:

{
  "quarters": [
    {
      "file": "ny_penn_tracks_2024_q1.parquet",
      "year": 2024,
      "quarter": 1,
      "records": 4481,
      "date_range": {
        "start": "2024-01-01",
        "end": "2024-03-31"
      },
      "unique_trains": 106,
      "unique_tracks": 16
    }
  ]
}

License

This dataset is released under the Open Database License (ODbL) v1.0.

Contact & Contributions

This dataset is maintained by the team at njtracks.app.

  • Issues: Report data quality issues or feature requests on the dataset discussion board
  • Updates: Watch this dataset for notifications about quarterly updates
  • Community: Share your models, analyses, and insights with the community!

Built with data from NJ Transit's Developer APIs

Downloads last month
53