In Graphlab,
I am working with a small subset of movies from a larger list.
movieIds_5K_np = LL_features_SCD_min.to_numpy()[:,0]
ratings_33K_np = ratings_33K.to_numpy()
movieIds_5K_np
is an array containing my movieIds. `ratings_33K_np' is an array with FOUR columns whose second columns contains movie Ids for ALL movies.
I need to select only the rows in ratings_33K_np
whose id exist in `movieIds_5K_np'.
I tried this approach but it doesn't seems to be working:
ratings_5K_np = ratings_33K_np[ratings_33K_np[:,2]==movieIds_5K_np]
How can I do this in Graphlab or by using some Python libraries? I should say that originally ratings_33K
and movieIds_5K
were imported as SFrame.
Thanks