Skip to content
Advertisement

Tag: correlation

Use .corr to get the correlation between two columns

I have the following pandas dataframe Top15: I create a column that estimates the number of citable documents per person: I want to know the correlation between the number of citable documents per capita and the energy supply per capita. So I use the .corr() method (Pearson’s correlation): I want to return a single number, but the result is: Answer

Advertisement