Skip to content

Commit 5e58ee9

Browse files
authored
Merge pull request #1221 from Kaggle/fix-geopandas
b/270162926 fix geopandas test
2 parents 3413100 + a4df8a0 commit 5e58ee9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ RUN pip install pytorch-ignite \
538538
datasets==2.1.0 \
539539
kaggle-environments \
540540
geopandas \
541+
# b/270162926 newer versions of shapely seem to break polygon data in geopandas
542+
shapely==1.8 \
541543
vowpalwabbit \
542544
pydub \
543545
pydegensac \

tests/test_geopandas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ def test_spatial_join(self):
1313
countries = world[['geometry', 'name']]
1414
countries = countries.rename(columns={'name':'country'})
1515
cities_with_country = geopandas.sjoin(cities, countries, how="inner", op='intersects')
16-
# naturalearth_lowres is missing all polygons so its always empty intersection...
17-
#self.assertTrue(cities_with_country.size > 1)
16+
self.assertTrue(cities_with_country.size > 1)

0 commit comments

Comments
 (0)