0

I am trying to count the number of times the word "unacc" occurs in the column "evaluation" in this excel data file using pandas. With the below code, I can see that there are 1210 "unacc" occurrences but I want to be able to just print that number instead of printing all the unique values in the column. How would I go about that?

import pandas as pd
data_file=pd.read_csv('9car.data.csv')
print(data_file.evaluation.value_counts())
miradulo
  • 28,857
  • 6
  • 80
  • 93

0 Answers0