I have the following table as pandas dataframe with features
testframe = pd.DataFrame(columns = ['feat1', 'feat2']) testframe['feat1'] = [1,0,1,0,1,0,1,1,0,1] testframe['feat2'] = [1,0,1,0,0,0,1,1,0,0]
where the index is the number of observation (e.g people).
I want to find out, if there are any correlation between feat1 and feat2. I thought about chi2, but I am not quite sure if it is applicable in this case.
My real observation has the shape
(43,2), so it is quite small I would say.
Are there any tests for correlation (or independency) you can recommend? If so, how would be the implementation in python?
I am happy for every hint on this!