This should probably be a string (if your intention is to store basically a top level + sublevel key)... though, really, there's an argument for two columns - step
and substep
or whatever. That also makes ordering trivial in either SQL or Python.
1 Like