write a function if value error then pandas code example Example: exception pyton print except Exception as e: print(e)