Is there any method to use cartesian product and zip in SFrame or SArray?
User 5312 | 6/21/2016, 3:28:40 AM
Hi I'm newbie to Graphlab.
is there any method to cartesian product and zip in SFrame or SArray?
User 940 | 6/21/2016, 5:52:17 PM
Hi @mincheolPark ,
Although there is no explicit zip function for SArray's, there is an equivalent function called pack_columns for an SFrame.
Regarding a cartesian product, I'm not entirely sure what you mean by that. Do you mean a per-row cartesian product of two SArray's? Or treating the entire SArray as a set and doing a cartesian product of those?
User 5312 | 6/22/2016, 2:11:13 AM
thanks for your answer.
I found simple function <code>add_column</code> that can use instead of <code>zip</code> in SFrame :)
and cartesian product that I said means cartesian product of two list.
I also found some tricky way of that