image_output_1.png
import pandas as pd

data = pd.read_csv('../input/world-happiness/2019.csv')

correlation_matrix_data = data.corr()

histogram_data = data[['Score', 'GDP per capita']]

histogram_data.plot.hist(bins=40, color=['darkblue', 'darkgreen'], figsize=(10, 4), edgecolor='black', lw=1)