How to Solve NameError: name 'Resampling' is not defined -- rasterio

Solution: Import the 'Resampling' module

To Solve the error, add the following line to the top of your code.

from rasterio import Resampling

 

For more information:
Python rasterio Resampling