Python Pandas Create New Column Based On Multiple Conditions In A While Loop