pandas count unique values in column

#TO count repetition of each unique values(to find How many times the same-
# unique value is appearing in the data)

item_counts = df["Your_Column"].value_counts()
#Returns Dictionary => {"Value_name" : number_of_appearences} 

Here is what the above code is Doing:
1. We’re using the value_counts() method on our column to get a dictionary of all the unique values in the column and the number of times they appear.
2. We’re storing this dictionary in a variable called item_counts.
3. We’re printing out the first 5 items in the dictionary.