pandas 之unique()函数与nunique()函数区别. 区别: (1)unique()是以 数组形式(numpy.ndarray)返回所选列的所有唯一值(特征的所有唯一值) (2)nunique() Return number of unique elements in the object.即返回的是唯一值的个数; 等同于用法:len(ratings_df[‘title’].unique())