arXiv · 2111.11956
ptype-cat: Inferring the Type and Values of Categorical Variables
Abstract
Type inference is the task of identifying the type of values in a data column and has been studied extensively in the literature. Most existing type inference methods support data types such as Boolean, date, float, integer and string. However, these methods do not consider non-Boolean categorical variables, where there are more than two possible values encoded by integers or strings. Therefore, such columns are annotated either as integer or string rather than categorical, and need to be transformed into categorical manually by the user. In this paper, we propose a probabilistic type inference method that can identify the general categorical data type (including non-Boolean variables). Additionally, we identify the possible values of each categorical variable by adapting the existing type inference method ptype. Combining these methods, we present ptype-cat which achieves better results than existing applicable solutions.
Explore related subjects
Keep this discovery
Taha Ceritli, Christopher K. I. Williams. 2021-11-23. ptype-cat: Inferring the Type and Values of Categorical Variables. https://arxiv.org/abs/2111.11956
Cite the original work for its findings. Save a collection to share your selection of sources.