MACHINE LEARNING

APPLICATION OF SUPERVISED LEARNING

MACHINE LEARNINGHARD QUESTIONS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
for var in categorical:print(df[v0ar].value ____ counts())What does this code means?
A
To view the values
B
view frequency of categorical variables
C
view all the values and variables
D
All of these
Explanation: 

Detailed explanation-1: -The bar chart is often used to show the frequencies of a categorical variable.

Detailed explanation-2: -Often while working with pandas dataframe you might have a column with categorical variables, string/characters, and you want to find the frequency counts of each unique elements present in the column. Pandas’ value counts() easily let you get the frequency counts.

Detailed explanation-3: -‘value counts()‘ is a function in the pandas library that returns the frequency of each unique value in a categorical data column. This function is useful when you want to get a quick understanding of the distribution of a categorical variable, such as the most common categories and their frequency.

There is 1 question to complete.