You should have a look at _column_or_1d in the metrics module