Re: np.unique and collect

2016-06-03 Thread Ted Yu
Where is np defined ? Thanks On Fri, Jun 3, 2016 at 6:07 AM, pseudo oduesp <pseudo20...@gmail.com> wrote: > Hi , > why np.unique return list instead of list in this function ? > > def unique_item_df(df,list_var): > > l = df.select(list_var).distinct().collect()

np.unique and collect

2016-06-03 Thread pseudo oduesp
Hi , why np.unique return list instead of list in this function ? def unique_item_df(df,list_var): l = df.select(list_var).distinct().collect() return np.unique(l) df it s data frmae and list it lits of variables . (pyspark) code thanks .