
from pathlib import Path
import pandas
import geopandas
import os
folder = os.getcwd()
shapefiles = folder.glob("mprec*.shp")
print(shapefiles)
gdf = pd.concat([
    gpd.read_file(shp)
    for shp in shapefiles
]).pipe(gpd.GeoDataFrame)
gdf.to_file(folder / 'compiled.shp')
                                                                                                                                                                        
