spotify-training / README.md
Cossale's picture
Update README.md
22d395a verified
playlists/ (6.6M rows, 2 files)
┌─────────────────────┬────────┬─────────────────────────────┐
│ Column              │ Type   │ Sample                      │
├─────────────────────┼────────┼─────────────────────────────┤
│ rowid               │ int64  │ 1                           │
│ id                  │ string │ "37i9dQZF1DXcBWIGoYBM5M"   │
│ snapshot_id         │ string │ "MTczODcwNTA4MCww..."       │
│ fetched_at          │ int64  │ 1703456789000               │
│ name                │ string │ "Today's Top Hits"          │
│ description         │ string │ "The hottest tracks..."     │
│ collaborative       │ int64  │ 0                           │
│ public              │ int64  │ 1                           │
│ primary_color       │ string │ "#6bb6da"                   │
│ owner_id            │ string │ "spotify"                   │
│ owner_display_name  │ string │ "Spotify"                   │
│ followers_total     │ int64  │ 35248475                    │
│ tracks_total        │ int64  │ 50                          │
└─────────────────────┴────────┴─────────────────────────────┘

playlist_tracks/ (1.7B rows, 340 files)
┌───────────────────────────┬────────┬──────────────────┐
│ Column                    │ Type   │ Sample           │
├───────────────────────────┼────────┼──────────────────┤
│ playlist_rowid            │ int64  │ 1                │
│ position                  │ int64  │ 0                │
│ is_episode                │ int64  │ 0                │
│ track_rowid               │ int64  │ 705              │
│ id_if_not_in_tracks_table │ string │ null             │
│ added_at                  │ int64  │ 1738705080       │
│ added_by_id               │ string │ null             │
│ primary_color             │ string │ null             │
│ video_thumbnail_url       │ string │ null             │
│ is_local                  │ int64  │ 0                │
└───────────────────────────┴────────┴──────────────────┘

Key columns for training:
- playlist_rowid → group tracks by playlist
- track_rowid → the track ID (FK to main tracks table)
- position → order in playlist

playlist_images/ (11M rows, 3 files)
┌──────────────────┬────────┬─────────────────────────────────┐
│ Column           │ Type   │ Sample                          │
├──────────────────┼────────┼─────────────────────────────────┤
│ playlist_rowid   │ int64  │ 1                               │
│ width            │ int64  │ 640                             │
│ height           │ int64  │ 640                             │
│ url              │ string │ "https://i.scdn.co/image/ab67…" │
└──────────────────┴────────┴─────────────────────────────────┘

Total: ~11GB compressed Parquet