ENH: enable y to only implement the array interface

For instance y could be a pandas' dataframe