python – Shapely Deprecation Warning in Plotting GeoPandas GeoDataFrame

geopandasmatplotlibnumpypythonshapely

I am trying to plot a GeoPandas geodataframe as I always do. Now I am having a new pc when I try to plot my geodataframe using : gdf.plot() there is no plot displayed and I receive this message:

C:\Users\DELL\anaconda3\lib\site-packages\descartes\patch.py:62: ShapelyDeprecationWarning: The array interface is deprecated and will no longer work in Shapely 2.0. Convert the '.coords' to a numpy array instead

Does anyone have an idea about it?

Best Answer

( Answer for users who ended up here based on the title and just want to hide the error )

If you have acknowledged the error and do not want it to keep appearing, you can always ignore it using :

import shapely
import warnings
from shapely.errors import ShapelyDeprecationWarning
warnings.filterwarnings("ignore", category=ShapelyDeprecationWarning)