When running 'Extract by Mask' in python, all of my values for the input raster that fall outside of the mask are changed to 0 instead of NoData. If I run the tool manually within the geoprocessing toolbox, with all the same settings, the output is correct, where all values that fall outside the mask are changed to 'NoData'. However, I need to run this tool in batch which is why I need it to work correctly in python. Is there some sort of environment setting in arcpy that I need to change?
I can't replicate your problem so it suggests there is another issue. May be data type or default settings? When I run extract by mask from a python command line it works as expected.