Explanation:Categorical data has a categories and a ordered property. 9. Which of the following method can be used to rename categorical data ?
A. Categorical.rename_categories()
B. Categorical.rename()
C. Categorical.mv_categories()
D. None of the Mentioned
Answer:A
Explanation:Categorical data has a categories and a ordered property. 9. Which of the following method can be used to rename categorical data ?
A. Categorical.rename_categories() B. Categorical.rename() C. Categorical.mv_categories() D. None of the Mentioned
Explanation:Renaming categories is done by assigning new values to the Series.cat.categories property. 10. All values of categorical data are either in categories or np.nan.