This line caused the error:
if _%100==0:
When I print the result for _ using one model without ensambling, it is just an integer number, but after I made my update with ensambling, this variable _ is a dataframe. But I don’t know how to fix it.

Screen Shot 2021-10-19 at 11.46.46 PM1690×1544 437 KB