Recently started using Pandera; what an excellent Python Package!
Does anyone know if it is possible to include so-called metadata of a column into the SchemaModel of a dataframe? For instance, add the unit of a column (seconds, kilometers, etc.).
Consider the following situation. I have two pandas Dataframes (say df1 and df2), each with a column distance. Now suppose I merge these two dataframes over some keys into a new dataframe called df_merged, and then take the sum of both distance columns. It would be great to validate whether both distance units are equal (e.g., both km, or both cm) when validating the resulting dataframe.
I guess it would mean that the Input schemas of df1 and df2 would include some kind of metadata of the distance columns, and that Pandera checks whether the units are compatible.
Is this possible with Pandera, or do I need to implement this differently?