1

Which pandas method converts a Series with categorical values to category dtype?

Correct Answer: astype('category')

Make the most of this question

This page focuses on one Pandas MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

Pandas MCQs MCQ: Which pandas method converts a Series with categorical values to category dtype? | Extra Education