Open cloverpyy opened 5 years ago
Hi, Do you mean the characteristic of the data? if so, you use 'df.describe' and you can try "df.info()
The below code will give you the count all the unique values in a coulmn: count = df['A'].value_counts(dropna=False)
To get the count of specific value in dataset, you can also write: count = df[df['A']=='B'].value_counts(dropna=False) I hope this helps!
I do not know how to count the number of specific value in dataset, like calculating some probability that need the counting function, so I want to ask for it. Thanks for your help.