1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # 14.23 °¢ Ư¡µé »çÀÌÀÇ »ó°ü°ü°è¸¦ »ìÆ캸ÀÚ, 393ÂÊ # import matplotlib.pyplot as plt import seaborn as sns import pandas as pd life = pd.read_csv('life_expectancy.csv') sns.set(rc={'figure.figsize':(12,10)}) correlation_matrix = life.corr().round(2) sns.heatmap(data=correlation_matrix, annot=True) plt.show() | cs |