public.py
def gdf2df(gdf):
    """Convert GeoPandas to Pandas dataframe, encoding geometry as WKT."""
    return pandas.DataFrame(
        gdf.assign(WKT=gdf['geometry'].apply(lambda g: g.wkt))).drop(
            columns=['geometry'])
Convert GeoPandas to Pandas dataframe, encoding geometry as WKT.
Convert GeoPandas to Pandas dataframe, encoding geometry as WKT.
Convert GeoPandas to Pandas dataframe encoding geometry as WKT .
def gdf2df(gdf):
    return pandas.DataFrame(
        gdf.assign(WKT=gdf['geometry'].apply(lambda g: g.wkt))).drop(
            columns=['geometry'])
def gdf2df ( gdf ) : return pandas . DataFrame ( gdf . assign ( WKT = gdf [ 'geometry' ] . apply ( lambda g : g . wkt ) ) ) . drop ( columns = [ 'geometry' ] )
Convert GeoPandas to Pandas dataframe, encoding geometry as WKT.
Convert GeoPandas to Pandas dataframe encoding geometry as WKT .
"""Convert GeoPandas to Pandas dataframe, encoding geometry as WKT."""
gdf