Enable all functions to work on element of new type

See here

And the other thread linked therein.

For the specific example maybe go the other way and store whatever else you need a metadata of the DataFrame?