image_output_1.png
import matplotlib.pyplot as plt

import matplotlib.pyplot as plt

import seaborn as sns

import seaborn as sns
sns.set()

(sns.get_dataset_names(), len(sns.get_dataset_names()))

healthexp = sns.load_dataset('healthexp')
healthexp

top_spending_countrys = healthexp[['Country', 'Life_Expectancy']]
top_spending_countrys
plt.figure(figsize=(10, 6))
sns.barplot(x='Life_Expectancy', y='Country', data=top_spending_countrys, palette='viridis')
plt.title('Life_Expectancy')
plt.xlabel('Life_Expectancy')
plt.ylabel('Year')
plt.show()