Python, Data Analysis, Data Science, R, Machine Learning.
print('Correlation: {0}.'.format(np.corrcoef(df['children_height'], df['father_height'])[0,1])) # import sm from statsmodels.api import statsmodels.api as sm # extract the column x (independent) and y (dependent) x = df['father_height'].values.reshape(-1, 1) y =