Displaying 1 result from an estimated 1 matches for "item_pairs".
Did you mean:
item_pages
2009 Jun 10
2
How to get the unique pairs of a set of pairs dataframe ?
...easier solution of doing the below
mentioned work.
Suppose i have a dataset like this:---
i1 i2 i3 i4 i5
1 7 13 1 2
2 8 14 2 2
3 9 15 3 3
4 10 16 4 4
5 11 17 5 5
6 12 18 6 7
*i1,i2,i3,i4,i5 are my items.I am able to find all possible pairs i.e
Say this dataframe is "item_pairs"
**i1,i2
**i1,i3
**i1,i4
i1,i5
**i2,i1
**i2,i3
i2,i4
i2,i5
**i3,i1
**i3,i2
**i3,i4
**i3,i5
**i4,i1
**i4,i2
**i4,i3
i4,i5
i5,i1
i5,i2
i5,i3
i5,i4
Pairs like (i1,i1) or (i2,i2) are not required.Now pair (i1,i2) is same as
pair (i2,i1) .How can i chop off the second pair which is identicle to th...