Pandas - Convert Object Type to Category Type

preview_player
Показать описание
Converting a column with the Object type to a Category type in Pandas
Рекомендации по теме
Комментарии
Автор

Thank you for this video. it was useful for my assignment being a new data scientist. Guess the conversion is for memory usage.

temiloluadeyemo
Автор

Why you are converting dtype from Object to Categorical? IS it for memory usage only or is there any other reason?

shubhamsd
Автор

But the astype () was not defined. It gave me an error when I ran the code

temiloluadeyemo