зеркало из https://github.com/microsoft/torchgeo.git
SSL4EO: fix sampling script (#1510)
This commit is contained in:
Родитель
f261266b41
Коммит
dc6fa51db4
|
@ -53,7 +53,7 @@ def get_world_cities(
|
|||
cols = ["city", "lat", "lng", "population"]
|
||||
cities = pd.read_csv(os.path.join(download_root, filename), usecols=cols)
|
||||
cities.at[8436, "population"] = 50789 # fix one bug (Tecax) in the csv file
|
||||
cities = cities.nlargest("population", size)
|
||||
cities = cities.nlargest(size, "population")
|
||||
return cities
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче