How To Export A Geopandas Dataframe To Excel
Iam writing a simple code and would like to export the content of the GEODATAFRAME to excel. Please advise what is the simplest way to achieve that. The code is as follows: import
Solution 1:
It works the same as a pandas dataframe - you can just Google how to do that.
In your case
import geopandas as gpd
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
xlpath='C:/'
world.to_excel(xlpath) # do not use here export_excel=df.to_excel...
Post a Comment for "How To Export A Geopandas Dataframe To Excel"