When to use pandas get_dummies() and sklearn LabelEncoder()


#1

Hello,
I am new to Data Science.I have recently started implementing datasets and participating in hackathons.However one thing I am still confused about is that when should I use pandas get_dummies() function to encode categorical variables and when should I use sklearn’s LabelEncoder()?