Repository: openego/eDisGo (language: python)

Issue:
[BUG]Problems with geopandas 0.9 missing .sjoin method
**Describe the bug**
Problems with geopandas 0.9 missing .sjoin method

**To Reproduce**
Install geopandas 0.9 -> run emobility example notebook




Discussion / hints:

Fix patch:
diff --git a/setup.py b/setup.py
index acb6e423..b2c50a9b 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ def read(fname):
     "networkx >= 2.5.0",
     "geopy >= 2.0.0",
     "pandas >= 1.2.0",
-    "geopandas >= 0.9.0",
+    "geopandas >= 0.12.0",
     "pyproj >= 3.0.0",
     "shapely >= 1.7.0",
     "pypsa >= 0.17.0, <= 0.20.1",


Test patch:
diff --git a/tests/test_edisgo.py b/tests/test_edisgo.py
index b2f8402c..8e712700 100755
--- a/tests/test_edisgo.py
+++ b/tests/test_edisgo.py
@@ -1594,7 +1594,10 @@ def test_import_edisgo_from_files(self):
         assert edisgo_obj_loaded.config._data == edisgo_obj.config._data
         # check results
         assert_frame_equal(
-            edisgo_obj_loaded.results.i_res, edisgo_obj.results.i_res, check_freq=False
+            edisgo_obj_loaded.results.i_res,
+            edisgo_obj.results.i_res,
+            check_freq=False,
+            check_names=False,
         )
         # check electromobility
         assert_frame_equal(