0
respostas

Comando sjoin não funcionou.

Prezados, fui aplicar o comando sjoin no colab e ele informou um erro relacionado ao retry. Logo, gostaria de entender melhor o porque do ocorrido e como resolver ele. Podem me ajudar com isso?

o erro é o seguinte:

/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py:2822: FutureWarning: The `op` parameter is deprecated and will be removed in a future release. Please use the `predicate` parameter instead.
  if self.run_code(code, result):
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-19-334e5b11c202> in <module>()
      1 
----> 2 geo_dados = gpd.sjoin(geo_dados, setor,how='left', op = 'within')

4 frames
/usr/local/lib/python3.7/dist-packages/geopandas/sindex.py in _get_sindex_class()
     20         return RTreeIndex
     21     raise ImportError(
---> 22         "Spatial indexes require either `rtree` or `pygeos`. "
     23         "See installation instructions at https://geopandas.org/install.html"
     24     )

ImportError: Spatial indexes require either `rtree` or `pygeos`. See installation instructions at https://geopandas.org/install.html

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
-----------------------------------