I have a sample dataset as below
Phillippines Indonesia Malta India
0 Error Free Error Free Defective Error Free
1 Error Free Error Free Error Free Defective
2 Error Free Defective Defective Error Free
3 Error Free Error Free Error Free Error Free
4 Error Free Error Free Defective Error Free
I want to make a contingency table with row index as Defective, Error Free and column index as Phillippines, Indonesia, Malta, India and data as their corresponding value counts. Thanks in advance.