all could you please help how can I to check if the types of food and the anonymity of entries are independent or correlated by using a Chi-square test? I have to find the correlation between group column and manufacturer. The problem is here is fgroup and manufacturer columns re object type, and I get different errors: for example :
from scipy.stats import chisquare
chisquare(df['fgroup'], df['manufacurer '])
error: unsupported operand type(s) for -: 'str' and 'NoneType'
data is here:
Thanks in advance: