Explicilty convert categorical columns as category datatypes
Sun Sep 18 2022 12:39:41 GMT+0000 (UTC)
Saved by @hquizzagan #python
Usually, columns containing strings or objects are either categorical variables, or just normal string data. If categorical, it is better to rewrite their datatype as `category` as they use less memory and operations will be much faster.
Comments