I am making a graph for a life expectancy data set, and it is not going well, I want to add the deaths and say from which region and year it is. I have tried multiple stuff but it either comes out cramped to the point where the text is overlapping, or it has errors.
I tried:
import pandas as pd
import matplotlib.pyplot as plt
life_expectancy_dataset=pd.read_csv("/kaggle/input/life-expectancy-who-updated/Life-Expectancy-Data-Updated.csv")
life_expectancy_dataset['Region'].value_counts()
plt.plot(life_expectancy_dataset["Year"])
plt.plot(life_expectancy_dataset["Region"])
plt.plot(life_expectancy_dataset["Life_expectancy"])
plt.title("Life Expectancy")
plt.ylabel("Life Expectancy")
plt.show()
and the graph wasn't right and there was overlapping text at the bottom right.