I have a folder full of shapefiles, I would like to read them into geopandas and then clip them all to one boundary iteratively. I have loaded all of the shapefiles into a list with this correctly thanks to @Kadir Şahbaz:
import glob
import geopandas as gpd
shapefiles = glob.iglob('E:/folder/shapefiles/*.shp')
gdfs = [gpd.read_file(file) for file in shapefiles]
However now I am stuck on iterating through each shapefile (geodataframe in the list gdfs). The code below only applies the clip to the first shapefile(item) in the list:
for shapefiles in gdfs:
clipped = [gpd.clip(shapefiles, boundary)
I need to iterate the clip through each shapefile(geodataframe) in the list (and later save each as a separate shapefile).