When there is no space in the column name, we can use any of the methods. For example,
df_mcd['Category'].value_counts()
df_mcd.Category.value_counts()
When there is a space in the column name, for example, "Category of student", then only square brackets are supported.
Comments
0 comments
Article is closed for comments.