Na Values Function In Python With Parameters In Java