Loading tutorials
object dtype by default, and object knows nothing about the repetition. This chapter explains wha6 min readint64 and object, and have used groupby and value_counts. The next chapter looks at what pandas stores inside the co5 min readdtype output such as int64 and object, and use groupby and value_counts. It also assumes you have seen astype("category"). The goal here is to measure what a categorical column saves you on your own data, so you can decide w5 min readastype("category") or CategoricalDtype. It also assumes you know that a categorical stores a fixed list of categories plus integer codes, and that you can read the .cat accessor outputs from the earlier chapters. The chapter covers 5 min read.cat methods that edit categories, how each on5 min readastype("category") or CategoricalDtype. It also assumes you know the .cat accessor, the difference between categories and codes, and basic isna and fillna use on ordinary columns. Here you will see how a categorical represents a 5 min readcategory dtype (categories plus integer codes), and have read the earlier chapters on ordered categoricals. Here you will turn continuous numbers such as ages, prices, or scores into labeled groups. You will see the two main tools, `pd.c5 min readgroupby does when the grouping key is a categorical column. It covers the observed argument, the cases where the choice changes results, and how to pick a setting on purpose. It assumes you can use groupby and value_counts, and that you know a categorical stores a 5 min read.cat.categories, and how to use pd.concat and pd.merge on plain columns. It covers what happens when two categorical columns that were built separately are stacked or joined. By default pandas ofte4 min read.cat accessor, and use ordered categoricals. You also need to know how read_csv and to_csv work. The question here is what happens to a categorical column when it leaves memory and comes back. Some formats keep the dtype. Others 5 min readastype("category") or CategoricalDtype, read .cat.codes and .cat.categories, 6 min read.cat accessor behaves, and how groupby and value_counts work. Most categorical bugs fall into three groups: values outside the categ5 min read