is there any other method of calculating the same. During the session you have explained directly by using corr() function. Why it hasn't worked for us.
Hello Sreelatha In general, the corr() function doesn't work on non numeric columns it ignores categorical columns. But did the corr function work in my case and haven't in your case is the pandas version that both of us are using is different. There are alternatives available by calculating the correlation coefficient from numpy and scipy modules.
is there any other method of calculating the same. During the session you have explained directly by using corr() function. Why it hasn't worked for us.
Hello Sreelatha
In general, the corr() function doesn't work on non numeric columns it ignores categorical columns. But did the corr function work in my case and haven't in your case is the pandas version that both of us are using is different. There are alternatives available by calculating the correlation coefficient from numpy and scipy modules.