We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BUG: test_numerical_operations fails under pandas 1.1.0
[Failure](https://travis-ci.org/github/geopandas/geopandas/jobs/712675986#L2140) in `test_numerical_operations` (`idxmin` error type) -> pandas-dev/pandas#32749. Even though it is a known regression in pandas, we should handle it (at least skip tests for now).

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `geopandas/_compat.py`
Content:
```
1 from distutils.version import LooseVersion
2 import importlib
3 import os
4 import warnings
5 
6 import pandas as pd
7 import shapely
8 
9 # -----------------------------------------------------------------------------
10 # pandas compat
11 # -----------------------------------------------------------------------------
12 
13 PANDAS_GE_025 = str(pd.__version__) >= LooseVersion("0.25.0")
14 PANDAS_GE_10 = str(pd.__version__) >= LooseVersion("0.26.0.dev")
15 PANDAS_GE_11 = str(pd.__version__) >= LooseVersion("1.1.0.dev")
16 
17 
18 # -----------------------------------------------------------------------------
19 # Shapely / PyGEOS compat
20 # -----------------------------------------------------------------------------
21 
22 
23 SHAPELY_GE_17 = str(shapely.__version__) >= LooseVersion("1.7.0")
24 
25 HAS_PYGEOS = None
26 USE_PYGEOS = None
27 PYGEOS_SHAPELY_COMPAT = None
28 
29 try:
30     import pygeos  # noqa
31 
32     HAS_PYGEOS = True
33 except ImportError:
34     HAS_PYGEOS = False
35 
36 
37 def set_use_pygeos(val=None):
38     """
39     Set the global configuration on whether to use PyGEOS or not.
40 
41     The default is use PyGEOS if it is installed. This can be overridden
42     with an environment variable USE_PYGEOS (this is only checked at
43     first import, cannot be changed during interactive session).
44 
45     Alternatively, pass a value here to force a True/False value.
46     """
47     global USE_PYGEOS
48     global PYGEOS_SHAPELY_COMPAT
49 
50     if val is not None:
51         USE_PYGEOS = bool(val)
52     else:
53         if USE_PYGEOS is None:
54 
55             USE_PYGEOS = HAS_PYGEOS
56 
57             env_use_pygeos = os.getenv("USE_PYGEOS", None)
58             if env_use_pygeos is not None:
59                 USE_PYGEOS = bool(int(env_use_pygeos))
60 
61     # validate the pygeos version
62     if USE_PYGEOS:
63         try:
64             import pygeos  # noqa
65 
66             # validate the pygeos version
67             if not str(pygeos.__version__) >= LooseVersion("0.6"):
68                 raise ImportError(
69                     "PyGEOS >= 0.6 is required, version {0} is installed".format(
70                         pygeos.__version__
71                     )
72                 )
73 
74             # Check whether Shapely and PyGEOS use the same GEOS version.
75             # Based on PyGEOS from_shapely implementation.
76 
77             from shapely.geos import geos_version_string as shapely_geos_version
78             from pygeos import geos_capi_version_string
79 
80             # shapely has something like: "3.6.2-CAPI-1.10.2 4d2925d6"
81             # pygeos has something like: "3.6.2-CAPI-1.10.2"
82             if not shapely_geos_version.startswith(geos_capi_version_string):
83                 warnings.warn(
84                     "The Shapely GEOS version ({}) is incompatible with the GEOS "
85                     "version PyGEOS was compiled with ({}). Conversions between both "
86                     "will be slow.".format(
87                         shapely_geos_version, geos_capi_version_string
88                     )
89                 )
90                 PYGEOS_SHAPELY_COMPAT = False
91             else:
92                 PYGEOS_SHAPELY_COMPAT = True
93 
94         except ImportError:
95             raise ImportError(
96                 "To use the PyGEOS speed-ups within GeoPandas, you need to install "
97                 "PyGEOS: 'conda install pygeos' or 'pip install pygeos'"
98             )
99 
100 
101 set_use_pygeos()
102 
103 
104 def import_optional_dependency(name: str, extra: str = ""):
105     """
106     Import an optional dependency.
107 
108     Adapted from pandas.compat._optional::import_optional_dependency
109 
110     Raises a formatted ImportError if the module is not present.
111 
112     Parameters
113     ----------
114     name : str
115         The module name.
116     extra : str
117         Additional text to include in the ImportError message.
118     Returns
119     -------
120     module
121     """
122     msg = """Missing optional dependency '{name}'. {extra}  "
123         "Use pip or conda to install {name}.""".format(
124         name=name, extra=extra
125     )
126 
127     if not isinstance(name, str):
128         raise ValueError(
129             "Invalid module name: '{name}'; must be a string".format(name=name)
130         )
131 
132     try:
133         module = importlib.import_module(name)
134 
135     except ImportError:
136         raise ImportError(msg) from None
137 
138     return module
139 
140 
141 # -----------------------------------------------------------------------------
142 # RTree compat
143 # -----------------------------------------------------------------------------
144 
145 HAS_RTREE = None
146 RTREE_GE_094 = False
147 try:
148     import rtree  # noqa
149 
150     HAS_RTREE = True
151 except ImportError:
152     HAS_RTREE = False
153
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/geopandas/_compat.py b/geopandas/_compat.py
--- a/geopandas/_compat.py
+++ b/geopandas/_compat.py
@@ -12,7 +12,7 @@
 
 PANDAS_GE_025 = str(pd.__version__) >= LooseVersion("0.25.0")
 PANDAS_GE_10 = str(pd.__version__) >= LooseVersion("0.26.0.dev")
-PANDAS_GE_11 = str(pd.__version__) >= LooseVersion("1.1.0.dev")
+PANDAS_GE_11 = str(pd.__version__) >= LooseVersion("1.1.0")
 
 
 # -----------------------------------------------------------------------------

{"golden_diff": "diff --git a/geopandas/_compat.py b/geopandas/_compat.py\n--- a/geopandas/_compat.py\n+++ b/geopandas/_compat.py\n@@ -12,7 +12,7 @@\n \n PANDAS_GE_025 = str(pd.__version__) >= LooseVersion(\"0.25.0\")\n PANDAS_GE_10 = str(pd.__version__) >= LooseVersion(\"0.26.0.dev\")\n-PANDAS_GE_11 = str(pd.__version__) >= LooseVersion(\"1.1.0.dev\")\n+PANDAS_GE_11 = str(pd.__version__) >= LooseVersion(\"1.1.0\")\n \n \n # -----------------------------------------------------------------------------\n", "issue": "BUG: test_numerical_operations fails under pandas 1.1.0\n[Failure](https://travis-ci.org/github/geopandas/geopandas/jobs/712675986#L2140) in `test_numerical_operations` (`idxmin` error type) -> pandas-dev/pandas#32749. Even though it is a known regression in pandas, we should handle it (at least skip tests for now).\n", "before_files": [{"content": "from distutils.version import LooseVersion\nimport importlib\nimport os\nimport warnings\n\nimport pandas as pd\nimport shapely\n\n# -----------------------------------------------------------------------------\n# pandas compat\n# -----------------------------------------------------------------------------\n\nPANDAS_GE_025 = str(pd.__version__) >= LooseVersion(\"0.25.0\")\nPANDAS_GE_10 = str(pd.__version__) >= LooseVersion(\"0.26.0.dev\")\nPANDAS_GE_11 = str(pd.__version__) >= LooseVersion(\"1.1.0.dev\")\n\n\n# -----------------------------------------------------------------------------\n# Shapely / PyGEOS compat\n# -----------------------------------------------------------------------------\n\n\nSHAPELY_GE_17 = str(shapely.__version__) >= LooseVersion(\"1.7.0\")\n\nHAS_PYGEOS = None\nUSE_PYGEOS = None\nPYGEOS_SHAPELY_COMPAT = None\n\ntry:\n    import pygeos  # noqa\n\n    HAS_PYGEOS = True\nexcept ImportError:\n    HAS_PYGEOS = False\n\n\ndef set_use_pygeos(val=None):\n    \"\"\"\n    Set the global configuration on whether to use PyGEOS or not.\n\n    The default is use PyGEOS if it is installed. This can be overridden\n    with an environment variable USE_PYGEOS (this is only checked at\n    first import, cannot be changed during interactive session).\n\n    Alternatively, pass a value here to force a True/False value.\n    \"\"\"\n    global USE_PYGEOS\n    global PYGEOS_SHAPELY_COMPAT\n\n    if val is not None:\n        USE_PYGEOS = bool(val)\n    else:\n        if USE_PYGEOS is None:\n\n            USE_PYGEOS = HAS_PYGEOS\n\n            env_use_pygeos = os.getenv(\"USE_PYGEOS\", None)\n            if env_use_pygeos is not None:\n                USE_PYGEOS = bool(int(env_use_pygeos))\n\n    # validate the pygeos version\n    if USE_PYGEOS:\n        try:\n            import pygeos  # noqa\n\n            # validate the pygeos version\n            if not str(pygeos.__version__) >= LooseVersion(\"0.6\"):\n                raise ImportError(\n                    \"PyGEOS >= 0.6 is required, version {0} is installed\".format(\n                        pygeos.__version__\n                    )\n                )\n\n            # Check whether Shapely and PyGEOS use the same GEOS version.\n            # Based on PyGEOS from_shapely implementation.\n\n            from shapely.geos import geos_version_string as shapely_geos_version\n            from pygeos import geos_capi_version_string\n\n            # shapely has something like: \"3.6.2-CAPI-1.10.2 4d2925d6\"\n            # pygeos has something like: \"3.6.2-CAPI-1.10.2\"\n            if not shapely_geos_version.startswith(geos_capi_version_string):\n                warnings.warn(\n                    \"The Shapely GEOS version ({}) is incompatible with the GEOS \"\n                    \"version PyGEOS was compiled with ({}). Conversions between both \"\n                    \"will be slow.\".format(\n                        shapely_geos_version, geos_capi_version_string\n                    )\n                )\n                PYGEOS_SHAPELY_COMPAT = False\n            else:\n                PYGEOS_SHAPELY_COMPAT = True\n\n        except ImportError:\n            raise ImportError(\n                \"To use the PyGEOS speed-ups within GeoPandas, you need to install \"\n                \"PyGEOS: 'conda install pygeos' or 'pip install pygeos'\"\n            )\n\n\nset_use_pygeos()\n\n\ndef import_optional_dependency(name: str, extra: str = \"\"):\n    \"\"\"\n    Import an optional dependency.\n\n    Adapted from pandas.compat._optional::import_optional_dependency\n\n    Raises a formatted ImportError if the module is not present.\n\n    Parameters\n    ----------\n    name : str\n        The module name.\n    extra : str\n        Additional text to include in the ImportError message.\n    Returns\n    -------\n    module\n    \"\"\"\n    msg = \"\"\"Missing optional dependency '{name}'. {extra}  \"\n        \"Use pip or conda to install {name}.\"\"\".format(\n        name=name, extra=extra\n    )\n\n    if not isinstance(name, str):\n        raise ValueError(\n            \"Invalid module name: '{name}'; must be a string\".format(name=name)\n        )\n\n    try:\n        module = importlib.import_module(name)\n\n    except ImportError:\n        raise ImportError(msg) from None\n\n    return module\n\n\n# -----------------------------------------------------------------------------\n# RTree compat\n# -----------------------------------------------------------------------------\n\nHAS_RTREE = None\nRTREE_GE_094 = False\ntry:\n    import rtree  # noqa\n\n    HAS_RTREE = True\nexcept ImportError:\n    HAS_RTREE = False\n", "path": "geopandas/_compat.py"}], "after_files": [{"content": "from distutils.version import LooseVersion\nimport importlib\nimport os\nimport warnings\n\nimport pandas as pd\nimport shapely\n\n# -----------------------------------------------------------------------------\n# pandas compat\n# -----------------------------------------------------------------------------\n\nPANDAS_GE_025 = str(pd.__version__) >= LooseVersion(\"0.25.0\")\nPANDAS_GE_10 = str(pd.__version__) >= LooseVersion(\"0.26.0.dev\")\nPANDAS_GE_11 = str(pd.__version__) >= LooseVersion(\"1.1.0\")\n\n\n# -----------------------------------------------------------------------------\n# Shapely / PyGEOS compat\n# -----------------------------------------------------------------------------\n\n\nSHAPELY_GE_17 = str(shapely.__version__) >= LooseVersion(\"1.7.0\")\n\nHAS_PYGEOS = None\nUSE_PYGEOS = None\nPYGEOS_SHAPELY_COMPAT = None\n\ntry:\n    import pygeos  # noqa\n\n    HAS_PYGEOS = True\nexcept ImportError:\n    HAS_PYGEOS = False\n\n\ndef set_use_pygeos(val=None):\n    \"\"\"\n    Set the global configuration on whether to use PyGEOS or not.\n\n    The default is use PyGEOS if it is installed. This can be overridden\n    with an environment variable USE_PYGEOS (this is only checked at\n    first import, cannot be changed during interactive session).\n\n    Alternatively, pass a value here to force a True/False value.\n    \"\"\"\n    global USE_PYGEOS\n    global PYGEOS_SHAPELY_COMPAT\n\n    if val is not None:\n        USE_PYGEOS = bool(val)\n    else:\n        if USE_PYGEOS is None:\n\n            USE_PYGEOS = HAS_PYGEOS\n\n            env_use_pygeos = os.getenv(\"USE_PYGEOS\", None)\n            if env_use_pygeos is not None:\n                USE_PYGEOS = bool(int(env_use_pygeos))\n\n    # validate the pygeos version\n    if USE_PYGEOS:\n        try:\n            import pygeos  # noqa\n\n            # validate the pygeos version\n            if not str(pygeos.__version__) >= LooseVersion(\"0.6\"):\n                raise ImportError(\n                    \"PyGEOS >= 0.6 is required, version {0} is installed\".format(\n                        pygeos.__version__\n                    )\n                )\n\n            # Check whether Shapely and PyGEOS use the same GEOS version.\n            # Based on PyGEOS from_shapely implementation.\n\n            from shapely.geos import geos_version_string as shapely_geos_version\n            from pygeos import geos_capi_version_string\n\n            # shapely has something like: \"3.6.2-CAPI-1.10.2 4d2925d6\"\n            # pygeos has something like: \"3.6.2-CAPI-1.10.2\"\n            if not shapely_geos_version.startswith(geos_capi_version_string):\n                warnings.warn(\n                    \"The Shapely GEOS version ({}) is incompatible with the GEOS \"\n                    \"version PyGEOS was compiled with ({}). Conversions between both \"\n                    \"will be slow.\".format(\n                        shapely_geos_version, geos_capi_version_string\n                    )\n                )\n                PYGEOS_SHAPELY_COMPAT = False\n            else:\n                PYGEOS_SHAPELY_COMPAT = True\n\n        except ImportError:\n            raise ImportError(\n                \"To use the PyGEOS speed-ups within GeoPandas, you need to install \"\n                \"PyGEOS: 'conda install pygeos' or 'pip install pygeos'\"\n            )\n\n\nset_use_pygeos()\n\n\ndef import_optional_dependency(name: str, extra: str = \"\"):\n    \"\"\"\n    Import an optional dependency.\n\n    Adapted from pandas.compat._optional::import_optional_dependency\n\n    Raises a formatted ImportError if the module is not present.\n\n    Parameters\n    ----------\n    name : str\n        The module name.\n    extra : str\n        Additional text to include in the ImportError message.\n    Returns\n    -------\n    module\n    \"\"\"\n    msg = \"\"\"Missing optional dependency '{name}'. {extra}  \"\n        \"Use pip or conda to install {name}.\"\"\".format(\n        name=name, extra=extra\n    )\n\n    if not isinstance(name, str):\n        raise ValueError(\n            \"Invalid module name: '{name}'; must be a string\".format(name=name)\n        )\n\n    try:\n        module = importlib.import_module(name)\n\n    except ImportError:\n        raise ImportError(msg) from None\n\n    return module\n\n\n# -----------------------------------------------------------------------------\n# RTree compat\n# -----------------------------------------------------------------------------\n\nHAS_RTREE = None\nRTREE_GE_094 = False\ntry:\n    import rtree  # noqa\n\n    HAS_RTREE = True\nexcept ImportError:\n    HAS_RTREE = False\n", "path": "geopandas/_compat.py"}]}