Skip to content

california_cities.csv missing in notebooks/data/ #430

Open

Description

@thozimm

The following lines from the book result in "404 not found"

url = ('https://raw.githubusercontent.com/jakevdp/PythonDataScienceHandbook/'
'master/notebooks/data/california_cities.csv')
!cd data && curl -O {url}

Activity

  1. added a commit that references this issue on Aug 4, 2025
    144d40a
  2. lashvv commented on Aug 4, 2025

    @lashvv

    I've added the missing california_cities.csv and opened a pull request to fix this. Hope this helps!

  3. fragrantauto commented on Sep 6, 2026

    @fragrantauto

    I checked the repo root and noticed the default branch was updated from master to main, which usually triggers

  4. nicecartoon commented on Sep 11, 2026

    @nicecartoon

    Since the branch rename to main likely broke the raw URL path, the curl command should be updated to point to main/notebooks/data/california_cities.csv to avoid future 404s.

  5. wafir645fcqs49 commented on Sep 16, 2026

    @wafir645fcqs49
  6. naeemgwendlyn26 commented on Oct 8, 2026

    @naeemgwendlyn26

    The path should be updated to point to main/notebooks/data/california_cities.csv, but verify if the raw content URL also requires updating the base domain or headers to prevent similar 404s for other files in the same directory.

  7. carlinshree commented on Oct 10, 2026

    @carlinshree

    Updating the URL to the main branch will resolve the immediate 404, but we should also consider replacing curl with urllib.request.urlretrieve to make the notebook platform-independent across Windows and Unix environments. Does anyone know if there are other hardcoded path dependencies in the surrounding cells that will trigger similar failures once this link is corrected?

  8. tiffneysheniqua26 commented on Oct 18, 2026

    @tiffneysheniqua26

    Updating the URL to point to main is necessary, but we should also check if the other dataset calls in the notebook use this same hardcoded master branch pattern. If they do, is there a more robust way to handle these raw content URLs globally rather than patching each curl command individually?

  9. Runogrin commented on Oct 20, 2026

    @Runogrin

    curl needs -L or if other notebooks still reference master/notebooks/data/.

  10. K5BySaUdTH4K commented on Oct 24, 2026

    @K5BySaUdTH4K

    Besides updating master to main in the URL, passing the updated URL directly into `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions