Machine Learning, Data Science Projects, Data Science, Machine Learning Projects, Data Analysis.
dtype='object') """ Now, let’s know the number of unique values present in each of the columns. Use the below code. for i in train.columns: print(f"{i} : {train[i].nunique()}") """ OUTPUT: Item_Identifier : 1559 Item_Weight : 415 Item_Fat_Content : 5 Item_Visibility : 7880 Item_Type : 16 Item_MRP :