image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns  # visualization tool

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

happy.corr

#correlation map
f,ax = plt.subplots(figsize=(12, 12))
sns.heatmap(happy.corr(), annot=True, linewidths=.5, fmt= '.1f',ax=ax)
#plt.show()

happy.columns

happy.columns = [each.split()[0] + '_' + each.split()[1] if len(each.split()) > 1 else each for each in happy.columns]
happy.columns

plt.clf()

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

series = happy['Corruption']
print(type(series))
dataFrame = happy[['Corruption']]
print(type(dataFrame))