I am creating polygons in the Python Tool and want to output the GeoDataFrame to Alteryx to continue the analysis. The GeoDataFrame is created, but got an error in Alteryx. In Python Tool, the last few lines are :
gdf_5mw_df = pd.DataFrame(gdf_5mw)
gdf_5mw_df =gdf_5mw_df.astype({'the_geom': 'object'})
Alteryx.write(gdf_5mw_df, 1, {"the_geom": {"type": "SpatialObj"}})
There's no error when running Python Tool, but the Alteryx is unable to output the data :

Appreciate any help.