This commit is contained in:
2026-02-15 10:31:51 -08:00
parent 44436ffe6f
commit 97eb6506c7
2 changed files with 19 additions and 4 deletions

View File

@@ -17,7 +17,4 @@ def closest_city(point, df=None, population_threshold=0):
"population": np.int64(city["Population"]),
"distance": np.float64(distances[min_index].km),
"location": (city["Latitude"], city["Longitude"])
}
df = pd.read_csv("africapolis.csv", index_col=0)
print(closest_city((0,0), df=df, population_threshold=50000))
}