Open phackstock opened 1 month ago
Nice idea, and we already do this for codelists...
Question is whether that should be used on columns that are not explicitly checked as part of DataStructureDefinition.validate()
.
Good question, maybe this should be part of pyam anyway. Just as part of the reading in process stripping all the trailing whitespace of all values in all columns. Then we wouldn't need to even think about where to add it. We could just assume that all the values inside a pyam.IamDataFrame are clean.
It might be a good idea to remove training white spaces from the dimensions of model, scenario, variable and unit. The fact that we currently don't do this causes some overhead in fixing these issues that could be fixed automatically.