Creating a new column based on if-elif-else condition Creating a new column based on if-elif-else condition pandas pandas