This is my starting point. I have separated the specific column of my data which I want to count the specific number of times 0 and 1 appear
print(sr.count(0))
AttributeError: 'Int64Index' object has no attribute 'levels'
I have tried using the above code but it states and as evident the AttributeError shows up.