How can I save a GeoDataFrame to disk in Python? How can I save a GeoDataFrame to disk in Python? json json

How can I save a GeoDataFrame to disk in Python?


Your version 2 will save a file, but to a relative location. Try providing an absolute path:

with open('C:/folder/x.geojson', 'w') as f:    f.write(merged_short.to_json())