Home > Blockchain >  Regarding counting of duplicate values in data
Regarding counting of duplicate values in data

Time:10-01

How to get all the duplicate values of one specific column in dataframe? I want to only check values on one column but it's getting output with table or data. I want to count the number the times each value is repeated

CodePudding user response:

Use df['column'].value_counts().

CodePudding user response:

Above answer is correct , and further can be converted to dict

df["col1"].value_counts().to_dict()
  • Related