I am currently working on a project that involves a data processing pipeline, and in it I might come across all sorts of data. I would like to know if there are any references on an automatic way to detect if a numerical column is actually a category (e.g. store ids, ZIP codes, etc...) and to not mistake it for a continuous variable.
Is there any way in which we could look at the numbers on a particular column and solely based on the number tell if it's categorical or numerical? I myself have already read a couple of other posts regarding this problem here but most of the answers either don't have any references to scientific studies or simply say it's impossible.