ageron/handson-mlp

[bug] Housing data is not unique by latitude and longitude

Open

#15 geöffnet am 27. Dez. 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)Jupyter Notebook (513 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (1.561 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Enter the chapter number

Chapter 2

Enter the page number

117

What is the cell's number in the notebook

15

Enter the environment you are using to run the notebook

Jupyter on MacOS

Describe your issue

I don’t think the assumption that each (latitude, longitude) pair is unique is correct.

df["id"] = (df["longitude"] * 1000 + df["latitude"])
df['id'].value_counts()

There are 15 rows with (-122.41;37.8)

Thank you for this great book!

Enter what you expected to happen

No response

If you found a workaround, describe it here

No response

Contributor Guide