This is an educational video explaining how to create a median composite for Sentinel2 images. The libraries used are Xarray & Rasterio. The method used in the video is faster than using Rasterio or GDAL without Xarray.
The code can be found on this github repo except for the sentinel2 images:
https://github.com/TipsForGIS/median...