This video explains how to convert a shapefile into a raster file by using python
Gdal.RasterizeLayer function:
https://gdal.org/api/gdal_alg.html
You should watch the following video if you have problem using Geopandas
• Installing geopandas | Reading and pl...