I have a geoDataFrame with the following structure:
<class 'geopandas.geodataframe.GeoDataFrame'>
RangeIndex: 28 entries, 0 to 27
Data columns (total 3 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 Name 28 non-null object
1 Description 28 non-null object
2 geometry 28 non-null geometry
dtypes: geometry(1), object(2)
memory usage: 800.0+ bytes
Here is a pic of what my df looks like:
I am trying to save it in an MySQL database by using gdf.to_sql and my connection is using SQLAlchemy but I get the following error: AttributeError: 'GeometryDtype' object has no attribute 'base'.
I have been looking around and found this solution but I am not able to find the correct syntax make it work for MySQL.