BUG/TST: transform and filter on non-unique index, closes #4620
Merge pull request #5375 from danielballan/filter-nonunique

BUG/TST: transform and filter on non-unique index, closes #4620