Make translate_labels more flexible
For some reasons, translate_labels
doesn't work with my column names (even though I should be doing exactly the same thing as you). It's as if they were missing one more _something_
.
But I think that generally, this PR improves the function. The asserts are enough to ensure that nothing goes wrong, so we might just as well make it that tiny bit more flexible.