save in xlsx format python code example
Example 1: read shp in python
import geopandas as gpd
shapefile = gpd.read_file("shapefile.shp")
print(shapefile)
Example 2: how to open csv file in python
import csv
with open('example.csv') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
Example 3: python save as csv
import numpy as np
np.savetxt('data.csv', (col1_array, col2_array, col3_array), delimiter=',')