How many bytes does orders["city"] take as a category
pandas · from Categories and memory
category dtypeCategoricalDtypeordered.cat accessormemory_usageobserved=Putting the kettle on…
Starting up…
Exercise 4
How many bytes does orders["city"] take as a category? Return memory_usage(deep=True) of the converted column.
your answer
stuck? the lesson behind it
Categories and memory
Store each value once — and get meaningful sorting for free.