How can I implement a progress bar on a non-iterable line of code?
Several lines of code in Python script that takes from 20 minutes to several hours depending on the size
files to be read.If it would be possible to implement a progress bar that would track the progress towards completion.
we understand that tqdm and progressbar2 are most often used in cases in for loop.
gjson2 = rasterstats.zonal_stats(polygons, raster, prefix='xyz_', geojson_out=True,all_touched=False,categorical=True)