Using SArray and SFrames with Python set()

User 2568 | 2/10/2016, 1:45:58 AM

I wanted to have a SArray where each elements of the array is a python set rather than a list. A set would be useful than a list as I wanted 1. the features classes in the list to be unique 2. quikcly compute if the one set is a sub-set of another.

I quickly discovered that SArray does not support sets. If it was really easy to add, why not. Just a thought


User 1592 | 2/13/2016, 10:29:45 AM

Hi Kevin You can use to find the unique items. Next you can convert to a python set and check intersection. I also agree it will be useful to have set support, we will add it into our feature request list.